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:
Éric Gaspar 2022-06-13 15:53:42 +02:00
parent 83cc957e37
commit 15cfb7d261
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -108,15 +108,15 @@ chown -R $app:www-data "$final_path"
ynh_script_progression --message="Setting up backend..." --weight=1 ynh_script_progression --message="Setting up backend..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
mkdir -p "/opt/vikunja" mkdir -p "/opt/$app"
mkdir -p "/opt/vikunja/files" mkdir -p "/opt/$app/files"
tempdir="$(mktemp -d)" tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=$YNH_ARCH ynh_setup_source --dest_dir=$tempdir --source_id=$YNH_ARCH
back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")" back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")"
cp "$back" "/opt/vikunja/vikunja" cp "$back" "/opt/$app/vikunja"
chmod +x "/opt/vikunja/vikunja" chmod +x "/opt/$app/vikunja"
chown -R $app:www-data "/opt/vikunja/files" chown -R $app:www-data "/opt/$app/files"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -131,12 +131,12 @@ ynh_add_nginx_config
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_script_progression --message="Adding a configuration file..." --weight=1
mkdir -p "/etc/vikunja" mkdir -p "/etc/$app"
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="/etc/$app/config.yml"
chmod 400 "/etc/vikunja/config.yml" chmod 400 "/etc/$app/config.yml"
chown $app:$app "/etc/vikunja/config.yml" chown $app:$app "/etc/$app/config.yml"
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD