1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snserver_ynh.git synced 2024-09-03 20:26:22 +02:00

Merge pull request #7 from FabianWilkens/fix_change-url

Fix issue in change-url script
This commit is contained in:
Fabian Wilkens 2021-02-10 20:26:46 -05:00 committed by GitHub
commit bdb0c5049c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,12 +123,8 @@ if [ $change_domain -eq 1 ]
then then
new_mail="$app@$new_domain" new_mail="$app@$new_domain"
ynh_replace_string --match_string="$mail" --replace_string="$new_mail" --target_file="$final_path/live/app/mailers/application_mailer.rb" ynh_replace_string --match_string="$mail" --replace_string="$new_mail" --target_file="$final_path/live/app/mailers/application_mailer.rb"
ynh_replace_string --match_string="$domain" --replace_string="$new_domain" --target_file="$final_path/live/app/views/user_mailer/welcome.html.erb"
fi
if [ $change_path -eq 1 ]
then
ynh_replace_string --match_string="$path_url" --replace_string="$new_path" --target_file="$final_path/live/app/views/user_mailer/welcome.html.erb"
fi fi
ynh_replace_string --match_string="$old_domain$old_path" --replace_string="$new_domain$new_path" --target_file="$final_path/live/app/views/user_mailer/welcome.html.erb"
#================================================= #=================================================
# Modify Standard Notes - Extensions # Modify Standard Notes - Extensions