mirror of
https://gitlab.com/Bockiii/deemix-docker.git
synced 2024-08-30 17:32:18 +00:00
8 lines
864 B
Plaintext
8 lines
864 B
Plaintext
|
#!/usr/bin/with-contenv bash
|
||
|
|
||
|
# test write access to download and config folder and test internet connectivity
|
||
|
printf '[cont-init.d] Testing Access\n' && \
|
||
|
printf '%-50s %2s %-5s \n' "[cont-init.d] Container Builddate" ":" "$BUILDDATEENV" && \
|
||
|
if [ -w "/downloads" ]; then printf '%-50s %2s %-5s \n' "[cont-init.d] Download Folder Write Access" ":" "Success"; else printf '%-50s %2s %-5s \n' "[cont-init.d] Download Folder Write Access" ":" "Failure"; fi && \
|
||
|
if [ -w "/config" ]; then printf '%-50s %2s %-5s \n' "[cont-init.d] Config Folder Write Access" ":" "Success"; else printf '%-50s %2s %-5s \n' "[cont-init.d] Config Folder Write Access" ":" "Failure"; fi && \
|
||
|
if ping -c 1 1.1.1.1 &> /dev/null; then printf '%-50s %2s %-5s \n' "[cont-init.d] Internet Access" ":" "Success"; else printf '%-50s %2s %-5s \n' "[cont-init.d] Internet Access" ":" "Failure"; fi
|