1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 08:44:09 +02:00

feat(bootstrap): Make the bootsrap script idempotent

Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
Louis Chmn 2026-08-22 21:36:58 +02:00
commit b1fac05d57
2 changed files with 22 additions and 12 deletions

View file

@ -4,6 +4,10 @@ touch /var/log/nginx/access.log
touch /var/log/nginx/error.log
touch /var/log/cron/owncloud.log
if ("/var/www/html/config/config.php" | path exists) {
exit 0
}
cp /etc/nc/config.php /var/www/html/config/config.php
chmod 0755 /var/www/html/config/config.php