mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
Update install
This commit is contained in:
parent
96bab659cb
commit
d64fcb9884
1 changed files with 12 additions and 5 deletions
|
@ -33,8 +33,8 @@ ynh_script_progression --message="Validating installation parameters..." --weigh
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
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"
|
||||||
|
|
||||||
public_path=/home/yunohost.app/$app
|
# public_path=/home/yunohost.app/$app
|
||||||
test ! -e "${public_path}" || ynh_die --message="${public_path} already exists"
|
# test ! -e "${public_path}" || ynh_die --message="${public_path} already exists"
|
||||||
|
|
||||||
# Register (book) web path
|
# Register (book) web path
|
||||||
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
|
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
|
||||||
|
@ -77,9 +77,16 @@ ynh_setup_source --dest_dir=$final_path
|
||||||
# CREATE DIRECTORIES
|
# CREATE DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
public_path=/home/yunohost.app/$app
|
||||||
ynh_app_setting_set --app=$app --key=public_path --value=$public_path
|
ynh_app_setting_set --app=$app --key=public_path --value=$public_path
|
||||||
mkdir -p ${public_path}/uploads
|
|
||||||
mkdir -p ${public_path}/uploads/{big,import,medium,raw,small,thumb}
|
mkdir -p $public_path/uploads
|
||||||
|
mkdir -p $public_path/uploads/{big,import,medium,raw,small,thumb}
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# NGINX CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config "public_path"
|
ynh_add_nginx_config "public_path"
|
||||||
|
@ -142,7 +149,7 @@ ynh_store_file_checksum "$final_path/.env"
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
chown -R $app: $public_path
|
chown -R $app: $public_path
|
||||||
chmod -R 755 ${public_path}
|
chmod -R 755 $public_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
Loading…
Reference in a new issue