Skip to content
Snippets Groups Projects
Unverified Commit 33349382 authored by Griefed's avatar Griefed :joystick: Committed by GitHub
Browse files

Merge pull request #3 from Griefed/develop

Replace check for file and add logging
parents c9808b6b 05c3a8d1
No related branches found
Tags 1.0.3
No related merge requests found
......@@ -19,6 +19,8 @@ if [ ! -f /config/www/sui.lock ]; then
/config/www/
rm -Rf /tmp/sui
touch /config/www/sui.lock
else
echo "**** lock-file found. Skipping installation... ****"
fi
# Permission Stuffs
......
#!/usr/bin/with-contenv bash
if [ ! -a /config/www/apps.json ]; then
if [ ! -f /config/www/apps.json ]; then
cp -f \
/defaults/apps.json \
/config/www/apps.json
sed -i \
"s/DOMAIN/${DOMAIN}/g" \
/config/www/apps.json
else
echo "**** apps.json-file found. Skipping installation... ****"
fi
if [ ! -a /config/www/links.json ]; then
if [ ! -f /config/www/links.json ]; then
cp -f \
/defaults/links.json \
/config/www/links.json
else
echo "**** links.json-file found. Skipping installation... ****"
fi
if [ ! -a /config/www/index.html ]; then
if [ ! -f /config/www/index.html ]; then
cp -f \
/defaults/index.html \
/config/www/index.html
sed -i \
"s/PROTOCOL/${PROTOCOL}/g" \
/config/www/index.html
else
echo "**** index.html-file found. Skipping installation... ****"
fi
# Permissions Stuffs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment