mirror of
https://github.com/YunoHost-Apps/simple-torrent_ynh.git
synced 2024-09-03 20:26:18 +02:00
Update install
This commit is contained in:
parent
113f6d8353
commit
7e2eab60f2
1 changed files with 5 additions and 4 deletions
|
@ -27,8 +27,6 @@ architecture=$(ynh_detect_arch)
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
download_directory="/home/yunohost.app/$app/downloads"
|
|
||||||
watch_directory="/home/yunohost.app/$app/torrents"
|
|
||||||
disable_ip_v6="false"
|
disable_ip_v6="false"
|
||||||
disable_utp="false"
|
disable_utp="false"
|
||||||
|
|
||||||
|
@ -56,8 +54,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=2
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
||||||
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
||||||
ynh_app_setting_set --app=$app --key=download_directory --value=$download_directory
|
|
||||||
ynh_app_setting_set --app=$app --key=watch_directory --value=$watch_directory
|
|
||||||
ynh_app_setting_set --app=$app --key=disable_ip_v6 --value=$disable_ip_v6
|
ynh_app_setting_set --app=$app --key=disable_ip_v6 --value=$disable_ip_v6
|
||||||
ynh_app_setting_set --app=$app --key=disable_utp --value=$disable_utp
|
ynh_app_setting_set --app=$app --key=disable_utp --value=$disable_utp
|
||||||
|
|
||||||
|
@ -125,6 +121,11 @@ ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
||||||
|
|
||||||
mkdir -p $datadir/{torrents,downloads}
|
mkdir -p $datadir/{torrents,downloads}
|
||||||
|
|
||||||
|
download_directory=$datadir/downloads
|
||||||
|
watch_directory=$datadir/torrents
|
||||||
|
ynh_app_setting_set --app=$app --key=download_directory --value=$download_directory
|
||||||
|
ynh_app_setting_set --app=$app --key=watch_directory --value=$watch_directory
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chmod 755 $datadir/{torrents,downloads}
|
chmod 755 $datadir/{torrents,downloads}
|
||||||
chmod -R o-rwx $datadir
|
chmod -R o-rwx $datadir
|
||||||
|
|
Loading…
Add table
Reference in a new issue