diff --git a/README.md b/README.md index b8b7027..41b14db 100644 --- a/README.md +++ b/README.md @@ -258,6 +258,7 @@ $ sudo systemctl start rc.local ```txt # 附註 orbit +底下#!/bin/bash請務必要加 #!/bin/bash ORBIT_USER=rulingcom @@ -266,7 +267,9 @@ if [ -f "/home/$ORBIT_USER/.rvm/scripts/rvm" ]; then source /home/$ORBIT_USER/.rvm/scripts/rvm rvm use default else - if [ "$1" != "setup" ]; then + if [ -f "/etc/profile.d/rvm.sh" ]; then + source /etc/profile.d/rvm.sh + elif [ "$1" != "setup" ]; then echo "" echo "-----------------------------------------------------" echo "Orbit server dependencies is missing. Please run setup first."