diff --git a/scripts/install b/scripts/install index 81509de..4d5e092 100644 --- a/scripts/install +++ b/scripts/install @@ -40,8 +40,6 @@ ynh_script_progression --message="Validating installation parameters..." --weigh final_path=/var/www/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder" -mkdir -p "/etc/vikunja" - # Register (book) web path ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url @@ -122,9 +120,9 @@ ynh_add_nginx_config 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 400 "/etc/vikunja/config.yml" -chown $app:$app "/etc/vikunja/config.yml" +ynh_add_config --template="../conf/config.yml" --destination="$final_path/config.yml" +chmod 400 "$final_path/config.yml" +chown $app:$app "$final_path/config.yml" #================================================= # SETUP SYSTEMD