From b70ae9a3c5391e4f3bd0db1fc761ac65bafcd94f Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Sat, 4 Sep 2021 16:57:16 -0500 Subject: [PATCH] The last few stragglers of server setup --- cinera/setup.sh | 4 ++ server/serversetup.sh | 148 +++++++++++++++++++++--------------------- 2 files changed, 79 insertions(+), 73 deletions(-) diff --git a/cinera/setup.sh b/cinera/setup.sh index 577330f9..f8ae9d09 100755 --- a/cinera/setup.sh +++ b/cinera/setup.sh @@ -14,6 +14,10 @@ chgrp $ANNOTATIONS_USER_GROUP $CINERA_OUTPUT_PATH chgrp $ANNOTATIONS_USER_GROUP $CINERA_ASSETS_PATH chgrp $ANNOTATIONS_USER_GROUP $CINERA_SCRIPT_PATH chgrp $ANNOTATIONS_USER_GROUP $CINERA_SCRIPT_PATH/data +chmod 775 $CINERA_OUTPUT_PATH +chmod 775 $CINERA_ASSETS_PATH +chmod 775 $CINERA_SCRIPT_PATH +chmod 775 $CINERA_SCRIPT_PATH/data ./update_cinera.sh diff --git a/server/serversetup.sh b/server/serversetup.sh index fa7aa63a..da690516 100755 --- a/server/serversetup.sh +++ b/server/serversetup.sh @@ -163,7 +163,6 @@ SCRIPT echo "https://git.handmade.network/Annotation-Pushers/cinera_handmade.network/-/settings/ci_cd#js-deploy-keys-settings" echo "" echo "Run this script again when you're done - it will continue where it left off." - exit 0 savecheckpoint 81 @@ -252,7 +251,6 @@ if [ $checkpoint -lt 100 ]; then cp /home/hmn/hmn/src/config/config.go.example /home/hmn/hmn/src/config/config.go cp /home/hmn/hmn/server/hmn.conf.example /home/hmn/hmn/server/hmn.conf - cp /home/hmn/hmn/server/deploy.conf.example /home/hmn/hmn/server/deploy.conf cp /home/hmn/hmn/adminmailer/config.go.example /home/hmn/hmn/adminmailer/config.go cp /home/hmn/hmn/cinera/cinera.conf.sample /home/hmn/hmn/cinera/cinera.conf chown hmn:hmn /home/hmn/hmn/src/config/config.go @@ -298,79 +296,82 @@ SCRIPT fi cat < + hmn migrate -Restore static files: +${BLUE_BOLD}Restore static files${RESET} make restore-static-files -Set up Cinera: +${BLUE_BOLD}Set up Cinera${RESET} cd /home/hmn/hmn/cinera ./setup.sh -Start up Caddy: +${BLUE_BOLD}Start up Caddy${RESET} systemctl start caddy -Then deploy the site: +${BLUE_BOLD}Deploy the site!${RESET} make deploy