mirror of
https://github.com/YunoHost-Apps/conduit_ynh.git
synced 2024-09-03 18:16:30 +02:00
cleaning
This commit is contained in:
parent
fdc9921f99
commit
e1f39a0f46
4 changed files with 11 additions and 10 deletions
|
@ -20,8 +20,11 @@ fund = "https://liberapay.com/timokoesters/"
|
||||||
yunohost = ">= 11.2"
|
yunohost = ">= 11.2"
|
||||||
architectures = ["arm64", "amd64", "armhf"]
|
architectures = ["arm64", "amd64", "armhf"]
|
||||||
multi_instance = false
|
multi_instance = false
|
||||||
|
|
||||||
ldap = "not_relevant"
|
ldap = "not_relevant"
|
||||||
|
|
||||||
sso = "not_relevant"
|
sso = "not_relevant"
|
||||||
|
|
||||||
disk = "50M"
|
disk = "50M"
|
||||||
ram.build = "50M"
|
ram.build = "50M"
|
||||||
ram.runtime = "50M"
|
ram.runtime = "50M"
|
||||||
|
|
|
@ -33,7 +33,7 @@ ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:root "$install_dir"
|
chown -R $app:root "$install_dir"
|
||||||
chmod +x -R "$install_dir/conduit"
|
chmod +x "$install_dir/conduit"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SYSTEM CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
|
@ -61,7 +61,7 @@ yunohost service add $app --description="Chat server powered by Matrix" --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="../conf/conduit.toml" --destination="$install_dir/conduit.toml"
|
ynh_add_config --template="conduit.toml" --destination="$install_dir/conduit.toml"
|
||||||
|
|
||||||
chmod 400 "$install_dir/conduit.toml"
|
chmod 400 "$install_dir/conduit.toml"
|
||||||
chown $app:root "$install_dir/conduit.toml"
|
chown $app:root "$install_dir/conduit.toml"
|
||||||
|
|
|
@ -16,8 +16,6 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
# This should be a symetric version of what happens in the install script
|
|
||||||
|
|
||||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
||||||
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||||
then
|
then
|
||||||
|
|
|
@ -29,11 +29,11 @@ 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"
|
ynh_setup_source --dest_dir="$install_dir" --keep="conduit.toml"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R $app:root "$install_dir"
|
chown -R $app:root "$install_dir"
|
||||||
chmod +x -R "$install_dir/conduit"
|
chmod +x "$install_dir/conduit"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REAPPLY SYSTEM CONFIGURATIONS
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
|
@ -57,12 +57,12 @@ yunohost service add $app --description="Chat server powered by Matrix" --log="/
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPDATE A CONFIG FILE
|
# UPDATE A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
#ynh_script_progression --message="Updating a configuration file..." --weight=1
|
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||||
|
|
||||||
#ynh_add_config --template="../conf/conduit.toml" --destination="$install_dir/conduit.toml"
|
ynh_add_config --template="conduit.toml" --destination="$install_dir/conduit.toml"
|
||||||
|
|
||||||
#chmod 400 "$install_dir/conduit.toml"
|
chmod 400 "$install_dir/conduit.toml"
|
||||||
#chown $app:$app "$install_dir/conduit.toml"
|
chown $app:$app "$install_dir/conduit.toml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
Loading…
Add table
Reference in a new issue