Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
fix: Add more logging to determine whether scripts work as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
Griefed committed May 26, 2021
1 parent 6517494 commit 05c3a8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions root/etc/cont-init.d/30-install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions root/etc/cont-init.d/40-config
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ if [ ! -f /config/www/apps.json ]; then
sed -i \
"s/DOMAIN/${DOMAIN}/g" \
/config/www/apps.json
else
echo "**** apps.json-file found. Skipping installation... ****"
fi


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


Expand All @@ -24,6 +28,8 @@ if [ ! -f /config/www/index.html ]; then
sed -i \
"s/PROTOCOL/${PROTOCOL}/g" \
/config/www/index.html
else
echo "**** index.html-file found. Skipping installation... ****"
fi

# Permissions Stuffs
Expand Down

0 comments on commit 05c3a8d

Please sign in to comment.