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:
parent
023ca2d6ce
commit
83cc957e37
1 changed files with 5 additions and 5 deletions
|
@ -103,21 +103,21 @@ then
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
# Frontend
|
# 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
|
# Backend
|
||||||
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"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue