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-05-23 18:38:10 +02:00
parent 8bb68f369d
commit 0c90c0458c
2 changed files with 13 additions and 2 deletions

View file

@ -30,9 +30,10 @@ chmod +x $install_dir/xftp-server
# SPECIFIC SETUP
#=================================================
public_ip4="$(curl -s ip.yunohost.org)" || true
ynh_app_setting_set --app=$app --key=public_ip4 --value=$public_ip4
pushd "$install_dir"
public_ip4="$(curl -s ip.yunohost.org)" || true
ynh_app_setting_set --app=$app --key=public_ip4 --value=$public_ip4
./smp-server init --no-password --ip $public_ip4 -y
./xftp-server init --ip $public_ip4 --quota '20gb' --store-log --path $data_dir
popd

View file

@ -20,6 +20,16 @@ ynh_restore_file --origin_path="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================
ynh_script_progression --message="Restoring the data directory..." --weight=1
ynh_restore_file --origin_path="$data_dir" --not_mandatory
# (Same as for install dir)
chown -R $app:www-data "$data_dir"
#=================================================
# RESTORE SYSTEM CONFIGURATIONS
#=================================================