Skip to content

Commit

Permalink
fixed issue with install
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlapao committed Sep 16, 2024
1 parent 71ad6f4 commit f7e8598
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ function install() {
if [ "$INSTALL_SERVICE" = "true" ]; then
if [ "$OS" = "darwin" ]; then
echo "Installing prldevops service"
sudo "$DESTINATION"/prldevops install service
if [ -f "/Library/LaunchDaemons/com.parallels.prl-devops-service.plist" ]; then
echo "Restarting prl-devops-service"
sudo launchctl unload /Library/LaunchDaemons/com.parallels.prl-devops-service.plist
Expand Down Expand Up @@ -183,7 +184,7 @@ function install_standard() {
if [ "$OS" = "darwin" ]; then
echo "Installing prldevops service"

sudo "$DESTINATION"/prldevops install service
"$DESTINATION"/prldevops install service
if [ -f "/Library/LaunchDaemons/com.parallels.prl-devops-service.plist" ]; then
echo "Restarting prl-devops-service"
launchctl unload /Library/LaunchDaemons/com.parallels.prl-devops-service.plist
Expand Down Expand Up @@ -250,6 +251,19 @@ function uninstall_standard() {

echo "Removing prldevops from $DESTINATION"
rm "$DESTINATION/prldevops"
sudo rm "$DESTINATION/prldevops"
if [ -f "$DESTINATION/config.yml" ]; then
echo "Removing configuration file from $DESTINATION"
rm "$DESTINATION/config.yml"
fi
if [ -f "$DESTINATION/config.yaml" ]; then
echo "Removing configuration file from $DESTINATION"
rm "$DESTINATION/config.yaml"
fi
if [ -f "$DESTINATION/config.json" ]; then
echo "Removing configuration file from $DESTINATION"
rm "$DESTINATION/config.json"
fi
echo "prldevops has been uninstalled"
else
echo "prldevops is not installed in $DESTINATION"
Expand Down

0 comments on commit f7e8598

Please sign in to comment.