Skip to content

Commit 281bb1b

Browse files
committed
[Fixed] Fixed sed creating backup file
1 parent 645c0dc commit 281bb1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

serverpilot-scripts.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ if [ "$lemp" = "y" ] || [ $run_all = true ]; then
9393
(eval "wget --no-cache -O ${app_vhost_dir}/main.custom.conf ${nginx_conf_url}")
9494

9595
show_info "Inserting system user and appanme"
96-
(eval "sed -ie 's/SYSUSER/${system_user}/g' ${app_vhost_dir}/main.custom.conf")
97-
(eval "sed -ie 's/APPNAME/${appname}/g' ${app_vhost_dir}/main.custom.conf")
96+
(eval "sed -i -e 's/SYSUSER/${system_user}/g' ${app_vhost_dir}/main.custom.conf")
97+
(eval "sed -i -e 's/APPNAME/${appname}/g' ${app_vhost_dir}/main.custom.conf")
9898

9999
show_info "Restarting nginx..."
100100
service nginx-sp restart

0 commit comments

Comments
 (0)