test remove script
This commit is contained in:
parent
63b4e0a627
commit
20c27aa959
@ -1428,6 +1428,15 @@ EOF
|
|||||||
systemctl start ping-instances.service
|
systemctl start ping-instances.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
read -p "Remove this script? <y/N> " prompt
|
||||||
|
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||||
|
pct stop "$CTID"
|
||||||
|
pct remove "$CTID"
|
||||||
|
msg_ok "Removed this script"
|
||||||
|
else
|
||||||
|
msg_warn "Did not remove this script"
|
||||||
|
fi
|
||||||
|
|
||||||
post_update_to_api "done" "none"
|
post_update_to_api "done" "none"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -443,7 +443,7 @@ install_composer() {
|
|||||||
|
|
||||||
# Download and install latest composer
|
# Download and install latest composer
|
||||||
curl -fsSL https://getcomposer.org/installer -o /tmp/composer-setup.php
|
curl -fsSL https://getcomposer.org/installer -o /tmp/composer-setup.php
|
||||||
script -q -c "php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer" >/dev/null
|
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
|
||||||
|
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
msg_error "Failed to install Composer"
|
msg_error "Failed to install Composer"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user