mirror of
https://github.com/YunoHost-Apps/simplex_ynh.git
synced 2024-09-03 20:26:28 +02:00
fix
This commit is contained in:
parent
ed9bce3f0b
commit
18127c7eaf
3 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue