#!/bin/sh
# This is a comment!
echo Hello World        # This is a comment, too!

#git pull

#rsync -avx --exclude="*.git*" --exclude=".env" --exclude="composer.lock" --exclude="vendor" --exclude="storage" --exclude="bootstrap" /home/newrhytha2/public_html/git.fusionengg.in/fusion-quickpanel/ /home/newrhytha2/public_html/devsfm.fusionengg.in/

echo "Do you git pull?"
select yn in "Yes" "No"; do
    case $yn in
        Yes ) git -C fusion-quickpanel pull origin main;break;;
        No ) break;;
    esac
done

echo "Do you wish to rsync to dev?"
select yn in "Yes" "No"; do
    case $yn in
        Yes ) rsync -avx --exclude="*.git*" --exclude=".env" --exclude="composer.lock" --exclude="vendor" --exclude="storage" --exclude="bootstrap" /home/newrhytha2/public_html/git.fusionengg.in/fusion-quickpanel/ /home/newrhytha2/public_html/devsfm.fusionengg.in/; break;;
        No ) break;;
    esac
done

echo "Do you wish to rsync this prod?"
select yn in "Yes" "No"; do
    case $yn in
        Yes ) rsync -avx --exclude="*.git*" --exclude=".env" --exclude="composer.lock" --exclude="vendor" --exclude="storage" --exclude="bootstrap" /home/newrhytha2/public_html/git.fusionengg.in/fusion-quickpanel/ /home/newrhytha2/public_html/sfm.fusionengg.in/; break;;
        No ) break;;
    esac
done

#echo "Do you wish to php artisan migrate dev?"
#select yn in "Yes" "No"; do
#    case $yn in
#	Yes ) php  -C /home/newrhytha2/public_html/devsfm.fusionengg.in/artisan migrate:fresh --seed; break;;
#        No ) exit;;
#    esac
#done
