mirror of
https://github.com/YunoHost-Apps/vikunja_ynh.git
synced 2024-09-03 18:06:26 +02:00
Update install
This commit is contained in:
parent
529d4beb3c
commit
4648a9484f
1 changed files with 12 additions and 11 deletions
|
@ -37,6 +37,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"
|
||||||
|
|
||||||
|
mkdir -p "/etc/vikunja"
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
|
@ -97,17 +99,6 @@ 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"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# ADD A CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
|
||||||
|
|
||||||
mkdir -p "/etc/vikunja"
|
|
||||||
redis_db=$(ynh_redis_get_free_db)
|
|
||||||
ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml"
|
|
||||||
|
|
||||||
#chmod 600 "/etc/vikunja/config.yml"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL BACKEND
|
# INSTALL BACKEND
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -126,6 +117,16 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=3
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# ADD A CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
|
redis_db=$(ynh_redis_get_free_db)
|
||||||
|
ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml"
|
||||||
|
|
||||||
|
#chmod 600 "/etc/vikunja/config.yml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue