mirror of
https://github.com/YunoHost-Apps/simplex_ynh.git
synced 2024-09-03 20:26:28 +02:00
Update upgrade
This commit is contained in:
parent
02c7d0b439
commit
7a1b062bc7
1 changed files with 3 additions and 2 deletions
|
@ -48,7 +48,7 @@ then
|
||||||
ynh_setup_source --dest_dir="$install_dir" --source_id="xftp"
|
ynh_setup_source --dest_dir="$install_dir" --source_id="xftp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p /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
|
chown -R $app:$app /etc/opt/simplex-xftp /var/opt/simplex-xftp
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
|
@ -63,7 +63,8 @@ chmod +x $install_dir/xftp-server
|
||||||
public_ip4="$(curl -s ip.yunohost.org)" || true
|
public_ip4="$(curl -s ip.yunohost.org)" || true
|
||||||
ynh_app_setting_set --app=$app --key=public_ip4 --value=$public_ip4
|
ynh_app_setting_set --app=$app --key=public_ip4 --value=$public_ip4
|
||||||
|
|
||||||
if [ -z "/etc/opt/simplex-xftp/fingerprint" ]; then
|
if [ -z "/etc/opt/simplex-xftp" ]; then
|
||||||
|
mkdir -p "/etc/opt/simplex-xftp"
|
||||||
pushd "$install_dir"
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue