1
0
Fork 0
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:
ericgaspar 2021-08-05 20:50:04 +02:00
parent 4b535ee185
commit aa087ae07a
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -89,11 +89,7 @@ ynh_psql_setup_db --db_user=$db_name --db_name=$db_name
#================================================= #=================================================
ynh_script_progression --message="Installing backend..." --weight=15 ynh_script_progression --message="Installing backend..." --weight=15
configdir="/etc/vikunja/" mkdir -p /etc/vikunja
mkdir -p $configdir
chmod 750 "$configdir"
chown -R $app "$configdir"
tempdir="$(mktemp -d)" tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=vikunja ynh_setup_source --dest_dir=$tempdir --source_id=vikunja
ynh_exec_warn_less dpkg -i $tempdir/vikunja-unstable-amd64.deb 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 # Create a dedicated NGINX config
ynh_add_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 # ADD A CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_script_progression --message="Adding a configuration file..." --weight=1
redis_db=$(ynh_redis_get_free_db) 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" #chmod 600 "/etc/vikunja/config.yml"