Skip to content

Commit

Permalink
Add in htadmin backup configs for #169
Browse files Browse the repository at this point in the history
  • Loading branch information
piercema committed Mar 30, 2023
1 parent f949f86 commit 30df74f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion htadmin/htadmin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@ else
EOF
python3 -m http.server 80
popd >/dev/null 2>&1
fi
fi

if [[ ! -f /var/www/htadmin/config/config.ini ]]; then
cp /var/www/htadmin/config/default/config.ini /var/www/htadmin/config/config.ini
fi

if [[ ! -f /var/www/htadmin/config/metadata ]]; then
cp /var/www/htadmin/config/default/metadata /var/www/htadmin/config/metadata
fi

0 comments on commit 30df74f

Please sign in to comment.