mirror of
https://github.com/YunoHost-Apps/simplex_ynh.git
synced 2024-09-03 20:26:28 +02:00
Update install
This commit is contained in:
parent
8f09e2808b
commit
8ffa1c1076
1 changed files with 11 additions and 4 deletions
|
@ -45,11 +45,11 @@ pushd "$install_dir"
|
||||||
./xftp-server init --ip $public_ip4 --quota '20gb' --store-log --path $data_dir
|
./xftp-server init --ip $public_ip4 --quota '20gb' --store-log --path $data_dir
|
||||||
popd
|
popd
|
||||||
|
|
||||||
fingerprint=$(cat /etc/opt/simplex/fingerprint)
|
#fingerprint=$(cat /etc/opt/simplex/fingerprint)
|
||||||
ynh_app_setting_set --app=$app --key=fingerprint --value=$fingerprint
|
#ynh_app_setting_set --app=$app --key=fingerprint --value=$fingerprint
|
||||||
|
|
||||||
xftp_fingerprint=$(cat /etc/opt/simplex-xftp/fingerprint)
|
#xftp_fingerprint=$(cat /etc/opt/simplex-xftp/fingerprint)
|
||||||
ynh_app_setting_set --app=$app --key=xftp_fingerprint --value=$xftp_fingerprint
|
#ynh_app_setting_set --app=$app --key=xftp_fingerprint --value=$xftp_fingerprint
|
||||||
|
|
||||||
#ynh_replace_string --match_string="port: 443" --replace_string="port: $port_xftp" --target_file="/etc/opt/simplex-xftp/file-server.ini"
|
#ynh_replace_string --match_string="port: 443" --replace_string="port: $port_xftp" --target_file="/etc/opt/simplex-xftp/file-server.ini"
|
||||||
|
|
||||||
|
@ -87,6 +87,13 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
||||||
ynh_systemd_action --service_name="xftp" --action="start" --log_path="/var/log/$app/$app.log"
|
ynh_systemd_action --service_name="xftp" --action="start" --log_path="/var/log/$app/$app.log"
|
||||||
|
|
||||||
|
|
||||||
|
fingerprint=$(cat /etc/opt/simplex/fingerprint)
|
||||||
|
ynh_app_setting_set --app=$app --key=fingerprint --value=$fingerprint
|
||||||
|
|
||||||
|
xftp_fingerprint=$(cat /etc/opt/simplex-xftp/fingerprint)
|
||||||
|
ynh_app_setting_set --app=$app --key=xftp_fingerprint --value=$xftp_fingerprint
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue