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:
parent
65d4d5d83c
commit
b1fac05d57
2 changed files with 22 additions and 12 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue