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:
parent
a80051cb95
commit
85da80b00e
3 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue