mirror of
https://github.com/YunoHost-Apps/simple-torrent_ynh.git
synced 2024-09-03 20:26:18 +02:00
Fix
This commit is contained in:
parent
91b0349085
commit
fe270614b8
2 changed files with 10 additions and 0 deletions
|
@ -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
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir=$final_path --source_id="$architecture"
|
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 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
|
@ -115,6 +115,11 @@ then
|
||||||
ynh_setup_source --dest_dir=$final_path --source_id="$architecture" #--keep="$final_path/config.yml"
|
ynh_setup_source --dest_dir=$final_path --source_id="$architecture" #--keep="$final_path/config.yml"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pushd "$final_path"
|
||||||
|
gzip --decompress $(ynh_detect_arch).gz
|
||||||
|
mv $(ynh_detect_arch) $app
|
||||||
|
popd
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
Loading…
Add table
Reference in a new issue