mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Update install
This commit is contained in:
parent
0bc63513d3
commit
bcd507f053
1 changed files with 6 additions and 7 deletions
|
@ -29,9 +29,7 @@ domain_whitelist_client=${domain_whitelist_client_%"\n"}
|
|||
#=================================================
|
||||
|
||||
path="/_matrix"
|
||||
|
||||
final_www_path="/var/www/$app"
|
||||
|
||||
main_domain=$(yunohost domain list --output-as json | jq -r .main)
|
||||
|
||||
if [[ "$server_name" == "$default_domain_value" ]]; then
|
||||
|
@ -45,11 +43,11 @@ ynh_script_progression --message="Validating installation parameters..." --weigh
|
|||
|
||||
test ! -e "/etc/nginx/conf.d/$domain.d/synapse*.conf" || ynh_die --message="$domain is not available as domain, please use an other domain."
|
||||
|
||||
if [ -e "$data_dir" ]; then
|
||||
old_data_dir_path="$data_dir$(date '+%Y%m%d.%H%M%S')"
|
||||
ynh_print_warn "A data directory already exist. Data was renamed to $old_data_dir_path"
|
||||
mv "$data_dir" "$old_data_dir_path"
|
||||
fi
|
||||
#if [ -e "$data_dir" ]; then
|
||||
# old_data_dir_path="$data_dir$(date '+%Y%m%d.%H%M%S')"
|
||||
# ynh_print_warn "A data directory already exist. Data was renamed to $old_data_dir_path"
|
||||
# mv "$data_dir" "$old_data_dir_path"
|
||||
#fi
|
||||
|
||||
#=================================================
|
||||
# STORE SETTINGS FROM MANIFEST
|
||||
|
@ -94,6 +92,7 @@ ynh_script_progression --message="Configuring system user..." --weight=3
|
|||
#else
|
||||
# yunohost user create $app -f Synapse -l Application -d $domain -p "$synapse_user_app_pwd"
|
||||
#fi
|
||||
|
||||
ynh_system_user_create --username=$synapse_user
|
||||
|
||||
adduser $synapse_user ssl-cert
|
||||
|
|
Loading…
Add table
Reference in a new issue