1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/owncloud_ynh.git synced 2024-09-03 19:56:25 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2023-12-05 18:57:41 +01:00
parent b9ec4c5055
commit 2e2ac82531

View file

@ -35,7 +35,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" #--keep="ocis.env ocis.yaml" ynh_setup_source --dest_dir="$install_dir" --keep="ocis.env ocis.yaml"
fi fi
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
@ -58,12 +58,12 @@ yunohost service add $app --description="File sharing platform" --log="/var/log/
#================================================= #=================================================
# ADD A CONFIGURATION # ADD A CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1 #ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template=".env" --destination="$install_dir/ocis.env" #ynh_add_config --template=".env" --destination="$install_dir/ocis.env"
chmod 400 "$install_dir/ocis.env" #chmod 400 "$install_dir/ocis.env"
chown $app:$app "$install_dir/ocis.env" #chown $app:$app "$install_dir/ocis.env"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE