Browse Source

* fix bash brace in use with var

master
gitea 4 years ago
parent
commit
f08305318f
  1. 2
      new-user.sh

2
new-user.sh

@ -5,7 +5,7 @@
# Also it change root path in nginx config # Also it change root path in nginx config
NEW_USER=$1 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} mv /var/www/yoursite /var/www/${NEW_USER}

Loading…
Cancel
Save