mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
Merge pull request #95 from jose1711/fix_backup
Don't backup same file twice
This commit is contained in:
commit
994096a695
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ ynh_backup --src_path=/etc/systemd/system/wireguard@.service
|
||||||
ynh_backup --src_path="/etc/wireguard"
|
ynh_backup --src_path="/etc/wireguard"
|
||||||
|
|
||||||
# Backing up specific config file, in case of it is not in /etc/wireguard
|
# Backing up specific config file, in case of it is not in /etc/wireguard
|
||||||
ynh_backup --src_path="$(jq -r ".config_file_path" $install_dir/db/server/global_settings.json)" --not_mandatory
|
ynh_backup --src_path="$(jq -r 'select(.config_file_path | startswith("/etc/wireguard/") | not) | .config_file_path' $install_dir/db/server/global_settings.json)" --not_mandatory
|
||||||
|
|
||||||
# Backup the sysctl config file to enable port forwarding
|
# Backup the sysctl config file to enable port forwarding
|
||||||
ynh_backup --src_path="/etc/sysctl.d/$app.conf"
|
ynh_backup --src_path="/etc/sysctl.d/$app.conf"
|
||||||
|
|
Loading…
Add table
Reference in a new issue