1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00
This commit is contained in:
Éric Gaspar 2024-06-17 22:30:23 +02:00
parent 689096b3ba
commit bbfacd61cc
4 changed files with 7 additions and 20 deletions

View file

@ -7,7 +7,7 @@ description.fr = "Client Web IRC"
version = "4.4.3~ynh2" version = "4.4.3~ynh2"
maintainers = ["rafi59"] maintainers = []
[upstream] [upstream]
license = "MIT" license = "MIT"

View file

@ -32,10 +32,6 @@ ynh_backup --src_path="$data_dir" --is_big
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# BACKUP SYSTEMD
#=================================================
ynh_backup --src_path="/etc/systemd/system/$app.service" ynh_backup --src_path="/etc/systemd/system/$app.service"
#================================================= #=================================================

View file

@ -28,14 +28,6 @@ ynh_setup_source --dest_dir=$install_dir
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
#================================================= #=================================================
# SPECIFIC SETUP # SPECIFIC SETUP
#================================================= #=================================================
@ -45,6 +37,9 @@ ynh_script_progression --message="Modifying a config file..." --weight=1
ynh_add_config --template="config.js" --destination="$data_dir/config.js" ynh_add_config --template="config.js" --destination="$data_dir/config.js"
chmod 400 "$data_dir/config.js"
chown "$app:$app" "$data_dir/config.js"
#================================================= #=================================================
# INSTALL THE LOUNGE # INSTALL THE LOUNGE
#================================================= #=================================================
@ -61,13 +56,10 @@ popd
#================================================= #=================================================
ynh_script_progression --message="Configuring a systemd service..." --weight=1 ynh_script_progression --message="Configuring a systemd service..." --weight=1
env_path="$PATH" # Create a dedicated NGINX config
ynh_add_systemd_config ynh_add_nginx_config
#================================================= ynh_add_systemd_config
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Client Web IRC" --log="/var/log/$app/$app.log" yunohost service add $app --description="Client Web IRC" --log="/var/log/$app/$app.log"

View file

@ -55,7 +55,6 @@ ynh_script_progression --message="Upgrading system configurations related to $ap
ynh_add_nginx_config ynh_add_nginx_config
env_path="$PATH"
ynh_add_systemd_config ynh_add_systemd_config
yunohost service add $app --description="Client Web IRC" --log="/var/log/$app/$app.log" yunohost service add $app --description="Client Web IRC" --log="/var/log/$app/$app.log"