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

Commit

Permalink
fix: Try and fix issue #1 "after each restart, all files are recreated"
Browse files Browse the repository at this point in the history
  • Loading branch information
Griefed committed May 26, 2021
1 parent c9808b6 commit 6517494
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions root/etc/cont-init.d/40-config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/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
Expand All @@ -10,14 +10,14 @@ if [ ! -a /config/www/apps.json ]; then
fi


if [ ! -a /config/www/links.json ]; then
if [ ! -f /config/www/links.json ]; then
cp -f \
/defaults/links.json \
/config/www/links.json
fi


if [ ! -a /config/www/index.html ]; then
if [ ! -f /config/www/index.html ]; then
cp -f \
/defaults/index.html \
/config/www/index.html
Expand Down

0 comments on commit 6517494

Please sign in to comment.