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

Add files

This commit is contained in:
ericgaspar 2022-01-16 13:43:08 +01:00
parent a80051cb95
commit 85da80b00e
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 10 additions and 1 deletions

View file

@ -107,7 +107,11 @@ ynh_script_progression --message="Installing backend..." --weight=15
tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=api
ynh_exec_warn_less dpkg -i $tempdir/vikunja-unstable-amd64.deb
mkdir -p "/opt/vikunja/files"
chmod +x "/opt/vikunja/vikunja"
chown -R $app:www-data "/opt/vikunja/files"
#=================================================
# NGINX CONFIGURATION

View file

@ -69,6 +69,7 @@ ynh_restore_file --origin_path="/etc/vikunja/config.yml"
ynh_restore_file --origin_path="/opt/vikunja"
chmod +x "/opt/vikunja/vikunja"
chown -R $app:www-data "/opt/vikunja/files"
#=================================================
# REINSTALL DEPENDENCIES

View file

@ -96,12 +96,16 @@ then
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" --source_id="front" --keep="/etc/vikunja/config.yml"
mkdir -p "/opt/vikunja/files"
fi
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod +x /opt/vikunja/vikunja
chmod +x "/opt/vikunja/vikunja"
chown -R $app:www-data "/opt/vikunja/files"
#=================================================
# ADD A CONFIGURATION