BakaChinatsu / lnmp-chacha20

12 stars 0 forks source link

使用~而非/root? #22

Closed zhangyubaka closed 8 years ago

zhangyubaka commented 8 years ago

感觉用root的话sudo用户会不方便?

BakaChinatsu commented 8 years ago

用sudo可以運行喵? if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, please use root to install lnmp" exit 1 fi

zhangyubaka commented 8 years ago

image 应当可行

zhangyubaka commented 8 years ago

image

BakaChinatsu commented 8 years ago

那個...乃說的那段代碼在哪裡😂

zhangyubaka commented 8 years ago

qwq!在结尾处

BakaChinatsu commented 8 years ago

天哪,这个iss窝到现在才理解是什么意思= =|| 但是sudo应该是完全取得root的权限和root的工作环境的啊,那么主目录应该也会变成 /root 才对?

zhangyubaka commented 8 years ago

不,sudo 中一些变量是继承的 雨宮千夏 notifications@github.com于2016年10月9日 周日上午10:58写道:

天哪,这个iss窝到现在才理解是什么意思= =|| 但是sudo应该是完全取得root的权限和root的工作环境的啊,那么主目录应该也会变成 /root 才对?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BakaChinatsu/lnmp-chacha20/issues/22#issuecomment-252461230, or mute the thread https://github.com/notifications/unsubscribe-auth/AHdfOX4vfmR_SEsOzk1s7AUiD80BLnlMks5qyFhIgaJpZM4GuW2o .

BakaChinatsu commented 8 years ago