1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/conduit_ynh.git synced 2024-09-03 18:16:30 +02:00
This commit is contained in:
Éric Gaspar 2023-11-15 12:46:39 +01:00
parent fdc9921f99
commit e1f39a0f46
4 changed files with 11 additions and 10 deletions

View file

@ -20,8 +20,11 @@ fund = "https://liberapay.com/timokoesters/"
yunohost = ">= 11.2"
architectures = ["arm64", "amd64", "armhf"]
multi_instance = false
ldap = "not_relevant"
sso = "not_relevant"
disk = "50M"
ram.build = "50M"
ram.runtime = "50M"

View file

@ -33,7 +33,7 @@ ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:root "$install_dir"
chmod +x -R "$install_dir/conduit"
chmod +x "$install_dir/conduit"
#=================================================
# 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_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"
chown $app:root "$install_dir/conduit.toml"

View file

@ -16,8 +16,6 @@ source /usr/share/yunohost/helpers
#=================================================
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`)
if ynh_exec_warn_less yunohost service status $app >/dev/null
then

View file

@ -29,11 +29,11 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
# 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
chown -R $app:root "$install_dir"
chmod +x -R "$install_dir/conduit"
chmod +x "$install_dir/conduit"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
@ -57,12 +57,12 @@ yunohost service add $app --description="Chat server powered by Matrix" --log="/
#=================================================
# 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"
#chown $app:$app "$install_dir/conduit.toml"
chmod 400 "$install_dir/conduit.toml"
chown $app:$app "$install_dir/conduit.toml"
#=================================================
# START SYSTEMD SERVICE