diff --git a/scripts/install b/scripts/install index ad4082a..835969d 100644 --- a/scripts/install +++ b/scripts/install @@ -89,11 +89,7 @@ ynh_psql_setup_db --db_user=$db_name --db_name=$db_name #================================================= ynh_script_progression --message="Installing backend..." --weight=15 -configdir="/etc/vikunja/" -mkdir -p $configdir -chmod 750 "$configdir" -chown -R $app "$configdir" - +mkdir -p /etc/vikunja tempdir="$(mktemp -d)" ynh_setup_source --dest_dir=$tempdir --source_id=vikunja ynh_exec_warn_less dpkg -i $tempdir/vikunja-unstable-amd64.deb @@ -121,23 +117,13 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=3 # Create a dedicated NGINX config ynh_add_nginx_config -#================================================= -# HANDLE LOG FILES AND LOGROTATE -#================================================= -ynh_script_progression --message="Configuring log rotation..." - -# Create log directory -mkdir -p /var/log/$app -touch /var/log/$app/$app.log -chown -R $app /var/log/$app - #================================================= # 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" +ynh_add_config --template="../conf/config.yml" --destination="/opt/vikunja/config.yml" #chmod 600 "/etc/vikunja/config.yml"