Standardize parenthesis usage for is_deployed
This commit is contained in:
1 parent
0d4560177a
commit
de550094da
3 files changed
+5
-5
No files matched your search
@@ -267,7 +267,7 @@ nginx_build_config() {
|
|||||||
# echo "sigil ${SIGIL_PARAMS[@]}"
|
# echo "sigil ${SIGIL_PARAMS[@]}"
|
||||||
sigil "${SIGIL_PARAMS[@]}" | cat -s > "$NGINX_CONF"
|
sigil "${SIGIL_PARAMS[@]}" | cat -s > "$NGINX_CONF"
|
||||||
|
|
||||||
if is_deployed "$APP"; then
|
if (is_deployed "$APP"); then
|
||||||
dokku_log_info1 "Creating $SCHEME nginx.conf"
|
dokku_log_info1 "Creating $SCHEME nginx.conf"
|
||||||
mv "$NGINX_CONF" "$DOKKU_ROOT/$APP/nginx.conf"
|
mv "$NGINX_CONF" "$DOKKU_ROOT/$APP/nginx.conf"
|
||||||
else
|
else
|
||||||
@@ -275,7 +275,7 @@ nginx_build_config() {
|
|||||||
rm -f "$NGINX_CONF"
|
rm -f "$NGINX_CONF"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if is_deployed "$APP"; then
|
if (is_deployed "$APP"); then
|
||||||
dokku_log_info1 "Running nginx-pre-reload"
|
dokku_log_info1 "Running nginx-pre-reload"
|
||||||
plugn trigger nginx-pre-reload "$APP" "$DOKKU_APP_LISTEN_PORT" "$DOKKU_APP_LISTEN_IP"
|
plugn trigger nginx-pre-reload "$APP" "$DOKKU_APP_LISTEN_PORT" "$DOKKU_APP_LISTEN_IP"
|
||||||
|
|
||||||
@@ -294,7 +294,7 @@ nginx_build_config() {
|
|||||||
dokku_log_info1 "deleting nginx.conf"
|
dokku_log_info1 "deleting nginx.conf"
|
||||||
rm "$DOKKU_ROOT/$APP/nginx.conf"
|
rm "$DOKKU_ROOT/$APP/nginx.conf"
|
||||||
|
|
||||||
if is_deployed "$APP"; then
|
if (is_deployed "$APP"); then
|
||||||
dokku_log_info1 "reloading nginx after nginx.conf deletion"
|
dokku_log_info1 "reloading nginx after nginx.conf deletion"
|
||||||
validate_nginx && restart_nginx
|
validate_nginx && restart_nginx
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ ps_restart() {
|
|||||||
local APP="$1"; verify_app_name "$APP"
|
local APP="$1"; verify_app_name "$APP"
|
||||||
local IMAGE_TAG=$(get_running_image_tag "$APP")
|
local IMAGE_TAG=$(get_running_image_tag "$APP")
|
||||||
|
|
||||||
if is_deployed "$APP"; then
|
if (is_deployed "$APP"); then
|
||||||
release_and_deploy "$APP" "$IMAGE_TAG"
|
release_and_deploy "$APP" "$IMAGE_TAG"
|
||||||
else
|
else
|
||||||
echo "App $APP has not been deployed"
|
echo "App $APP has not been deployed"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ ps_rebuildall_cmd() {
|
|||||||
declare desc="rebuilds all deployed apps via command line"
|
declare desc="rebuilds all deployed apps via command line"
|
||||||
local cmd="ps:rebuildall"
|
local cmd="ps:rebuildall"
|
||||||
for app in $(dokku_apps); do
|
for app in $(dokku_apps); do
|
||||||
is_deployed "$app" && ps_rebuild "$app"
|
(is_deployed "$app") && ps_rebuild "$app"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user