1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/owncloud_ynh.git synced 2024-09-03 19:56:25 +02:00
This commit is contained in:
Éric Gaspar 2024-06-20 11:54:40 +02:00
parent 27d1d2a3e2
commit f4573dbf3a
2 changed files with 14 additions and 5 deletions

View file

@ -1,6 +1,6 @@
TZ=__TIMEZONE__
OCIS_URL=https://__DOMAIN__
OCIS_PUBLIC_URL=https://__DOMAIN__
#OCIS_PUBLIC_URL=https://__DOMAIN__
PROXY_HTTP_ADDR=127.0.0.1:__PORT__
PROXY_TLS=true
OCIS_INSECURE=false

View file

@ -20,6 +20,15 @@ ynh_script_progression --message="Stopping a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if [[ -f "$install_dir/ocis.yaml" ]]; then
mv "$install_dir/ocis.yaml" "$data_dir/config/ocis.yaml"
fi
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
@ -48,12 +57,12 @@ yunohost service add $app --description="File sharing platform" --log="/var/log/
#=================================================
# 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"
#chown $app:$app "$install_dir/ocis.env"
chmod 400 "$install_dir/ocis.env"
chown $app:$app "$install_dir/ocis.env"
#=================================================
# START SYSTEMD SERVICE