mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-08 09:38:51 +02:00
databasus: Backup and secure configuration file (#14308)
This commit is contained in:
committed by
GitHub
parent
be2e3a4a3a
commit
28ae38e502
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user