1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vikunja_ynh.git synced 2024-09-03 18:06:26 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2022-06-13 15:53:31 +02:00
parent 023ca2d6ce
commit 83cc957e37
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -103,21 +103,21 @@ then
# Download, check integrity, uncompress and patch the source from app.src
# Frontend
ynh_setup_source --dest_dir="$final_path" --source_id="front" --keep="/etc/vikunja/config.yml"
ynh_setup_source --dest_dir="$final_path" --source_id="front" --keep="/etc/$app/config.yml"
# Backend
mkdir -p "/opt/vikunja/files"
mkdir -p "/opt/$app/files"
tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=$YNH_ARCH
back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")"
cp "$back" "/opt/vikunja/vikunja"
cp "$back" "/opt/$app/vikunja"
fi
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod +x "/opt/vikunja/vikunja"
chown -R $app:www-data "/opt/vikunja/files"
chmod +x "/opt/$app/vikunja"
chown -R $app:www-data "/opt/$app/files"
#=================================================
# NGINX CONFIGURATION