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:
ericgaspar 2022-01-19 15:55:30 +01:00
parent 91b0349085
commit fe270614b8
2 changed files with 10 additions and 0 deletions

View file

@ -97,6 +97,11 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir=$final_path --source_id="$architecture"
pushd "$final_path"
gzip --decompress $(ynh_detect_arch).gz
mv $(ynh_detect_arch) $app
popd
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"

View file

@ -115,6 +115,11 @@ then
ynh_setup_source --dest_dir=$final_path --source_id="$architecture" #--keep="$final_path/config.yml"
fi
pushd "$final_path"
gzip --decompress $(ynh_detect_arch).gz
mv $(ynh_detect_arch) $app
popd
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"