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
b5fc89eaff
commit
51152ff9b3
1 changed files with 7 additions and 8 deletions
|
@ -55,14 +55,6 @@ final_path=$path_url
|
||||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||||
|
|
||||||
# Register (book) web path
|
# Register (book) web path
|
||||||
if [[ $path_url =~ my_webapp ]]
|
|
||||||
then
|
|
||||||
#chown -R my_webapp $final_path
|
|
||||||
echo "pass"
|
|
||||||
else
|
|
||||||
chown -R www-data.www-data $final_path
|
|
||||||
fi
|
|
||||||
|
|
||||||
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
|
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,6 +110,13 @@ ynh_use_logrotate
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring permissions..." --weight=1
|
ynh_script_progression --message="Configuring permissions..." --weight=1
|
||||||
|
|
||||||
|
if [[ $path_url =~ my_webapp ]]
|
||||||
|
then
|
||||||
|
chown -R my_webapp $final_path
|
||||||
|
echo "pass"
|
||||||
|
else
|
||||||
|
chown -R www-data.www-data $final_path
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue