1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/simplex_ynh.git synced 2024-09-03 20:26:28 +02:00
This commit is contained in:
Éric Gaspar 2023-06-20 09:22:14 +02:00
parent ed9bce3f0b
commit 18127c7eaf
3 changed files with 6 additions and 2 deletions

View file

@ -23,6 +23,8 @@ ynh_backup --src_path="$install_dir"
ynh_backup --src_path="/etc/opt/simplex"
ynh_backup --src_path="/etc/opt/simplex-xftp"
ynh_backup --src_path="/var/opt/simplex"
ynh_backup --src_path="/var/opt/simplex-xftp"
#=================================================
# BACKUP SYSTEMD

View file

@ -37,6 +37,8 @@ ynh_remove_systemd_config --service=xftp
# Remove the app directory securely
ynh_secure_remove --file="/etc/opt/simplex"
ynh_secure_remove --file="/etc/opt/simplex-xftp"
ynh_secure_remove --file="/var/opt/simplex"
ynh_secure_remove --file="/var/opt/simplex-xftp"
#=================================================
# END OF SCRIPT

View file

@ -48,8 +48,8 @@ then
ynh_setup_source --dest_dir="$install_dir" --source_id="xftp"
fi
mkdir -p /etc/opt/simplex-xftp #/var/opt/simplex-xftp
chown -R $app:$app /etc/opt/simplex-xftp #/var/opt/simplex-xftp
mkdir -p /etc/opt/simplex-xftp /var/opt/simplex-xftp
chown -R $app:$app /etc/opt/simplex-xftp /var/opt/simplex-xftp
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"