mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-07 18:14:35 +00:00
rename function
This commit is contained in:
2
.env
2
.env
@@ -258,7 +258,7 @@ PHRASEANET_MAINTENANCE=0
|
|||||||
# Example :
|
# Example :
|
||||||
# PHRASEANET_MAINTENANCE_MESSAGE="<p>Under maintenance!</p><p>More information <a href=\"https://www.yoururl.fr\">here</a></p>"
|
# PHRASEANET_MAINTENANCE_MESSAGE="<p>Under maintenance!</p><p>More information <a href=\"https://www.yoururl.fr\">here</a></p>"
|
||||||
# @run
|
# @run
|
||||||
PHRASEANET_MAINTENANCE_MESSAGE=
|
PHRASEANET_MAINTENANCE_MESSAGE="Site: $PHRASEANET_PROJECT_NAME are under Maintenance ! Sorry, come back Later"
|
||||||
|
|
||||||
# --- RabbitMQ settings ------------------------------------------------------------------------------------------------
|
# --- RabbitMQ settings ------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
6
stack.sh
6
stack.sh
@@ -238,7 +238,7 @@ maintenance_mode() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
# Function to apply setup
|
# Function to apply setup
|
||||||
apply_setup() {
|
apply-setup() {
|
||||||
echo "Applying setup..."
|
echo "Applying setup..."
|
||||||
local env_files=($(get_env_files))
|
local env_files=($(get_env_files))
|
||||||
$DOCKER_COMPOSE_CMD "${env_files[@]/#/--env-file=}" run --rm setup
|
$DOCKER_COMPOSE_CMD "${env_files[@]/#/--env-file=}" run --rm setup
|
||||||
@@ -274,11 +274,11 @@ case "$1" in
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
apply)
|
apply-setup)
|
||||||
apply_setup
|
apply_setup
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start|stop|status|version|maintenance [on|off]|logs [container_name]}"
|
echo "Usage: $0 {start|stop|status|version|maintenance [on|off]|logs [container_name]|apply-setup}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user