mirror of
https://github.com/YunoHost-Apps/owncloud_ynh.git
synced 2024-09-03 19:56:25 +02:00
fix
This commit is contained in:
parent
cf92e1c5b5
commit
9ff5b4883e
4 changed files with 7 additions and 6 deletions
|
@ -5,7 +5,7 @@ PROXY_TLS=true
|
||||||
OCIS_INSECURE=true
|
OCIS_INSECURE=true
|
||||||
OCIS_LOG_LEVEL=warn
|
OCIS_LOG_LEVEL=warn
|
||||||
OCIS_FORCE_CONFIG_OVERWRITE=true
|
OCIS_FORCE_CONFIG_OVERWRITE=true
|
||||||
OCIS_CONFIG_DIR=__INSTALL_DIR__
|
OCIS_CONFIG_DIR=__DATA_DIR__/config/
|
||||||
OCIS_BASE_DATA_PATH=__DATA_DIR__
|
OCIS_BASE_DATA_PATH=__DATA_DIR__
|
||||||
OCIS_DEFAULT_LANGUAGE=__LANGUAGE__
|
OCIS_DEFAULT_LANGUAGE=__LANGUAGE__
|
||||||
#OCIS_EXCLUDE_RUN_SERVICES=thumbnails
|
#OCIS_EXCLUDE_RUN_SERVICES=thumbnails
|
||||||
|
|
|
@ -5,7 +5,7 @@ Description=ownCloud: Infinite Scale server
|
||||||
Type=simple
|
Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
EnvironmentFile=__INSTALL_DIR__/ocis.env
|
EnvironmentFile=__DATA_DIR__/config/ocis.env
|
||||||
ExecStart=__INSTALL_DIR__/ocis server
|
ExecStart=__INSTALL_DIR__/ocis server
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,7 @@ ram.runtime = "50M"
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
[resources.data_dir]
|
[resources.data_dir]
|
||||||
|
subdirs = ["config"]
|
||||||
|
|
||||||
[resources.ports]
|
[resources.ports]
|
||||||
|
|
||||||
|
|
|
@ -41,10 +41,10 @@ yunohost service add $app --description="File sharing platform" --log="/var/log/
|
||||||
#=================================================
|
#=================================================
|
||||||
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="$data_dir/config/ocis.env"
|
||||||
|
|
||||||
chmod 400 "$install_dir/ocis.env"
|
chmod 400 "$data_dir/ocis.env"
|
||||||
chown $app:$app "$install_dir/ocis.env"
|
chown $app:$app "$data_dir/ocis.env"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL OWNCLOUD
|
# INSTALL OWNCLOUD
|
||||||
|
@ -52,7 +52,7 @@ chown $app:$app "$install_dir/ocis.env"
|
||||||
ynh_script_progression --message="Installing $app..." --weight=3
|
ynh_script_progression --message="Installing $app..." --weight=3
|
||||||
|
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
./ocis init --insecure=true --force-overwrite=true --admin-password=$password #--config-path=$install_dir
|
./ocis init --insecure=true --force-overwrite=true --admin-password=$password --config-path=$data_dir/config/
|
||||||
popd
|
popd
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue