Patched pm-task start|stop|restart sub-commands.
This commit is contained in:
9
pm-task
9
pm-task
@@ -135,8 +135,7 @@ show_menu() {
|
||||
|
||||
# Function to restart containers
|
||||
restart_containers() {
|
||||
echo "Restarting containers in $WORKSPACE..."
|
||||
cd "$WORKSPACE" || return 1
|
||||
echo "Restarting containers..."
|
||||
|
||||
check_compose_file || return 1
|
||||
|
||||
@@ -154,8 +153,7 @@ restart_containers() {
|
||||
|
||||
# Function to start containers
|
||||
start_containers() {
|
||||
echo "Starting containers in $WORKSPACE..."
|
||||
cd "$WORKSPACE" || return 1
|
||||
echo "Starting containers..."
|
||||
|
||||
check_compose_file || return 1
|
||||
|
||||
@@ -166,8 +164,7 @@ start_containers() {
|
||||
|
||||
# Function to stop containers
|
||||
stop_containers() {
|
||||
echo "Stopping containers in $WORKSPACE..."
|
||||
cd "$WORKSPACE" || return 1
|
||||
echo "Stopping containers..."
|
||||
|
||||
check_compose_file || return 1
|
||||
|
||||
|
||||
@@ -158,8 +158,7 @@ show_menu() {
|
||||
|
||||
# Function to restart containers
|
||||
restart_containers() {
|
||||
echo "Restarting containers in $WORKSPACE..."
|
||||
cd "$WORKSPACE" || return 1
|
||||
echo "Restarting containers..."
|
||||
|
||||
check_compose_file || return 1
|
||||
|
||||
@@ -177,8 +176,7 @@ restart_containers() {
|
||||
|
||||
# Function to start containers
|
||||
start_containers() {
|
||||
echo "Starting containers in $WORKSPACE..."
|
||||
cd "$WORKSPACE" || return 1
|
||||
echo "Starting containers..."
|
||||
|
||||
check_compose_file || return 1
|
||||
|
||||
@@ -189,8 +187,7 @@ start_containers() {
|
||||
|
||||
# Function to stop containers
|
||||
stop_containers() {
|
||||
echo "Stopping containers in $WORKSPACE..."
|
||||
cd "$WORKSPACE" || return 1
|
||||
echo "Stopping containers..."
|
||||
|
||||
check_compose_file || return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user