Closed zhangyubaka closed 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
应当可行
那個...乃說的那段代碼在哪裡😂
qwq!在结尾处
天哪,这个iss窝到现在才理解是什么意思= =|| 但是sudo应该是完全取得root的权限和root的工作环境的啊,那么主目录应该也会变成 /root 才对?
不,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 .
酱
感觉用root的话sudo用户会不方便?