mirror of
https://github.com/YunoHost-Apps/icecoder_ynh.git
synced 2024-09-03 19:26:10 +02:00
Update install
This commit is contained in:
parent
d99e72bd84
commit
11fdf6ce24
1 changed files with 5 additions and 4 deletions
|
@ -22,6 +22,7 @@ ynh_abort_if_errors
|
|||
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path_url=$YNH_APP_ARG_PATH
|
||||
internal_path=`echo $YNH_APP_ARG_INTERNAL_PATH "/icecoder"`
|
||||
|
||||
|
||||
### If it's a multi-instance app, meaning it can be installed several times independently
|
||||
|
@ -77,7 +78,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
|||
|
||||
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"
|
||||
ynh_setup_source --dest_dir="$internal_path"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
@ -110,11 +111,11 @@ ynh_use_logrotate
|
|||
#=================================================
|
||||
ynh_script_progression --message="Configuring permissions..." --weight=1
|
||||
|
||||
if [[ $path_url =~ my_webapp ]]
|
||||
if [[ $internal_path =~ my_webapp ]]
|
||||
then
|
||||
chown -R my_webapp $final_path
|
||||
chown -R my_webapp $internal_path
|
||||
else
|
||||
chown -R www-data.www-data $final_path
|
||||
chown -R www-data.www-data $internal_path
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue