feat: add V Rising server #22

Closed
polpetta wants to merge 11 commits from vrising into master
Showing only changes of commit f34b13b347 - Show all commits

View File

@ -41,7 +41,7 @@ editCompose() {
(cd "${VRISING_COMPOSE_HOME}" && docker-compose down -v) (cd "${VRISING_COMPOSE_HOME}" && docker-compose down -v)
nano "${full_path_file_to_edit}" nano "${full_path_file_to_edit}"
log "File edit - ${full_path_file_to_edit}" log "File edit - ${full_path_file_to_edit}"
stdout "The server will now be recreated and you will be attached to the logs." stdout "The server will be now recreated and you will be attached to the logs."
stdout "Use ctrl-c to disconnect from the server" stdout "Use ctrl-c to disconnect from the server"
log "Server recreate" log "Server recreate"
(cd "${VRISING_COMPOSE_HOME}" && sleep 1 && docker-compose up -d && docker-compose logs -f) (cd "${VRISING_COMPOSE_HOME}" && sleep 1 && docker-compose up -d && docker-compose logs -f)
@ -70,6 +70,7 @@ THIS_LOG="${LOGS_FOLDER}/${USERNAME}-$(date --iso-8601=ns).log"
mkdir -p "${LOGS_FOLDER}" || (stderr "Unable to create logs folder, exiting" && exit 1) mkdir -p "${LOGS_FOLDER}" || (stderr "Unable to create logs folder, exiting" && exit 1)
stdout "Welcome ${USERNAME}, please remember that your current activity in the server is logged!" stdout "Welcome ${USERNAME}, please remember that your current activity in the server is logged!"
stdout "With ctrl-c you will instantly disconnected from the server"
while true while true
do do
@ -99,7 +100,7 @@ Select one of the following actions:
editWithRestart "${BASE_VRISING_FOLDER}${HOST_SETTINGS}" editWithRestart "${BASE_VRISING_FOLDER}${HOST_SETTINGS}"
;; ;;
3) 3)
editCompose "${VRISING_COMPOSE_HOME}/docker-compose.yml" editCompose "${VRISING_COMPOSE_HOME}docker-compose.yml"
;; ;;
4) 4)
stdout "Use ctrl-c to disconnect from the server at any time" stdout "Use ctrl-c to disconnect from the server at any time"