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
4b535ee185
commit
aa087ae07a
1 changed files with 2 additions and 16 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue