mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
24 lines
611 B
Bash
Executable File
24 lines
611 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ! -d ".git" ]; then
|
|
echo "Please deploy using Git."
|
|
exit 1
|
|
fi
|
|
|
|
if ! command -v git &> /dev/null; then
|
|
echo "Git is not installed! Please install git and try again."
|
|
exit 1
|
|
fi
|
|
|
|
git config --global --add safe.directory $(pwd)
|
|
git fetch --all && git reset --hard origin/dev && git pull origin dev
|
|
git checkout dev
|
|
rm -rf composer.lock composer.phar
|
|
wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar
|
|
php composer.phar update -vvv
|
|
php artisan xboard:update
|
|
|
|
if [ -f "/etc/init.d/bt" ] || [ "$docker" ]; then
|
|
chown -R www:www $(pwd);
|
|
fi
|