[wip] Disabling backup and restore scripts (temporarily).
This commit is contained in:
parent
639ee4992d
commit
9d2bc631e5
@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "backup script is not implemented"
|
||||
exit 0
|
||||
|
||||
#=================================================
|
||||
# GENERIC START
|
||||
#=================================================
|
||||
|
@ -1,5 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "restore script is not implemented"
|
||||
exit 0
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
if [ ! -e _common.sh ]; then
|
||||
# Fetch helpers file if not in current directory
|
||||
cp ../settings/scripts/_common.sh ./_common.sh
|
||||
chmod a+rx _common.sh
|
||||
fi
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# MANAGE SCRIPT FAILURE
|
||||
#=================================================
|
||||
|
||||
# Exit if an error occurs during the execution of the script
|
||||
ynh_abort_if_errors
|
||||
|
||||
backup_dir="${1}/apps/vpnclient"
|
||||
|
||||
sudo mkdir -p /etc/openvpn/
|
||||
|
Loading…
x
Reference in New Issue
Block a user