1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/simple-torrent_ynh.git synced 2024-09-03 20:26:18 +02:00
This commit is contained in:
Éric Gaspar 2024-06-19 11:41:32 +02:00
parent c587a0bb03
commit 5b154f9407
3 changed files with 5 additions and 5 deletions

0
conf/config.json Normal file
View file

View file

@ -43,10 +43,10 @@ yunohost service add $app --description="Self-hosted remote torrent client" --ne
#=================================================
ynh_script_progression --message="Modifying a config file..." --weight=1
ynh_add_config --template="config.default.yml" --destination="$install_dir/config.yml"
ynh_add_config --template="config.json" --destination="$install_dir/config.json"
chmod 400 "$install_dir/config.yml"
chown $app:$app "$install_dir/config.yml"
chmod 400 "$install_dir/config.json"
chown $app:$app "$install_dir/config.json"
#=================================================
# START SYSTEMD SERVICE

View file

@ -24,7 +24,7 @@ ynh_systemd_action --service_name=$app --action=stop --log_path=systemd
ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir=$install_dir --keep="config.yml"
ynh_setup_source --dest_dir=$install_dir --keep="config.json"
pushd "$install_dir"
gzip --decompress main --to-stdout > main_dezipped
@ -52,7 +52,7 @@ yunohost service add $app --description="Self-hosted remote torrent client" --ne
#=================================================
# ynh_script_progression --message="Modifying a config file..." --weight=1
# ynh_add_config --template="config.default.yml" --destination="$install_dir/config.yml"
# ynh_add_config --template="config.json" --destination="$install_dir/config.json"
#=================================================
# START SYSTEMD SERVICE