Compare commits

..

1 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
29ecc35c2f databasus: Backup and secure configuration file 2026-05-07 17:57:07 +02:00
2 changed files with 3 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ function update_script() {
msg_ok "Stopped Databasus"
msg_info "Backing up Configuration"
[[ ! -f /.env && -f /opt/databasus/.env ]] && cp /opt/databasus/.env /.env
chmod 600 /.env
cp /.env /opt/databasus.env.bak
chmod 600 /opt/databasus.env.bak
msg_ok "Backed up Configuration"

View File

@@ -25,7 +25,7 @@ function update_script() {
check_container_storage
check_container_resources
if [[ ! -d /var/lib/netbird/ ]]; then
if [[ ! -f /etc/netbird/config.json ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi