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:
ericgaspar 2021-12-02 17:14:31 +01:00
parent 487360f1aa
commit 50e93ff54c
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 12 additions and 2 deletions

View file

@ -57,6 +57,14 @@ ynh_script_progression --message="Finding an available port..."
port=$(ynh_find_port 9000)
ynh_app_setting_set --app=$app --key=port --value=$port
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Installing dependencies..." --weight=20
# Install Nodejs
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
# INSTALL DEPENDENCIES
#=================================================
@ -69,10 +77,10 @@ ynh_exec_warn_less dpkg -i $tempdir/thelounge.deb
#=================================================
# CREATE DEDICATED USER
#=================================================
ynh_script_progression --message="Configuring system user..."
#ynh_script_progression --message="Configuring system user..."
# Create a system user
ynh_system_user_create --username=$app --home_dir="$final_path"
#ynh_system_user_create --username=$app --home_dir="$final_path"
# #=================================================
# # DOWNLOAD, CHECK AND UNPACK SOURCE

View file

@ -50,6 +50,8 @@ ynh_script_progression --message="Removing dependencies..."
# Remove NodeJS
dpkg --remove thelounge
ynh_remove_nodejs
#=================================================
# REMOVE APP MAIN DIR
#=================================================