* fix bash brace in use with var

This commit is contained in:
2021-04-30 11:22:09 +00:00
parent 35db3b71ba
commit f08305318f

View File

@ -5,7 +5,7 @@
# Also it change root path in nginx config
NEW_USER=$1
usermod --login ${NEW_USER} --move-home --home="/home/{$NEW_USER}" yoursite
usermod --login ${NEW_USER} --move-home --home="/home/${NEW_USER}" yoursite
mv /var/www/yoursite /var/www/${NEW_USER}