mirror of
https://github.com/YunoHost-Apps/simple-torrent_ynh.git
synced 2024-09-03 20:26:18 +02:00
parent
9fe8b3d5a7
commit
8d025ebb1e
3 changed files with 2 additions and 11 deletions
|
@ -17,7 +17,6 @@
|
||||||
upgrade=1 from_commit=295026023fdb74f5bf210093f5b0622bae2982f3
|
upgrade=1 from_commit=295026023fdb74f5bf210093f5b0622bae2982f3
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
port_already_use=1
|
|
||||||
change_url=1
|
change_url=1
|
||||||
;;; Options
|
;;; Options
|
||||||
Email=
|
Email=
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Self-hosted remote torrent client",
|
"en": "Self-hosted remote torrent client",
|
||||||
"fr": "Client torrent distant auto-hébergé"
|
"fr": "Client torrent distant auto-hébergé"
|
||||||
},
|
},
|
||||||
"version": "1.2.16~ynh1",
|
"version": "1.2.16~ynh2",
|
||||||
"url": "https://github.com/boypt/simple-torrent",
|
"url": "https://github.com/boypt/simple-torrent",
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -106,14 +106,6 @@ mkdir -p /home/yunohost.app/$app/{torrents,downloads}
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Modifying a config file..." --weight=1
|
ynh_script_progression --message="Modifying a config file..." --weight=1
|
||||||
|
|
||||||
# cp ../conf/config.default.json "$final_path/config.json"
|
|
||||||
|
|
||||||
# # Main config File
|
|
||||||
# ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/config.json"
|
|
||||||
# ynh_replace_string --match_string="__PEER_PORT__" --replace_string="$peer_port" --target_file="$final_path/config.json"
|
|
||||||
|
|
||||||
# ynh_store_file_checksum --file="$final_path/config.json"
|
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.default.json" --destination="$final_path/config.json"
|
ynh_add_config --template="../conf/config.default.json" --destination="$final_path/config.json"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -134,7 +126,7 @@ ynh_script_progression --message="Securing files and directories..." --weight=1
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
chown -R $app: /home/yunohost.app
|
chown -R $app: /home/yunohost.app/$app
|
||||||
chmod +x $final_path/$app
|
chmod +x $final_path/$app
|
||||||
chmod -R 755 /home/yunohost.app/$app/{torrents,downloads}
|
chmod -R 755 /home/yunohost.app/$app/{torrents,downloads}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue