# HG changeset patch # User Nattee Niparnan # Date 2017-09-05 09:36:30 # Node ID 88b545da976a7028123835501b0012edeb1dd3f7 # Parent 5e861fcfb30f0db12e53cf692138daec6c40e944 update install.sh to work with latest ubuntu LTS diff --git a/installer/install.sh b/installer/install.sh --- a/installer/install.sh +++ b/installer/install.sh @@ -127,6 +127,19 @@ echo "GRADER_ROOT_DIR = '$CAFE_PATH/judge'" >> config/initializers/cafe_grader_config.rb echo "GRADING_RESULT_DIR = '$CAFE_PATH/judge/result'" >> config/initializers/cafe_grader_config.rb +# setup secret file +SECRET_A=`rake secret` +SECRET_B=`rake secret` +SECRET_C=`rake secret` +echo "development:" > config/secrets.yml +echo " secret_key_base: '$SECRET_A'" >> config/secrets.yml +echo "test:" >> config/secrets.yml +echo " secret_key_base: '$SECRET_B'" >> config/secrets.yml +echo "production:" >> config/secrets.yml +echo " secret_key_base: '$SECRET_C'" >> config/secrets.yml + + + echo "Installing required gems" gem install bundler bundle install