first commit

This commit is contained in:
CN-JS-HuiBai
2026-04-07 16:54:24 +08:00
commit 2c6a38c80d
399 changed files with 42205 additions and 0 deletions

27
Xboard/update.sh Normal file
View File

@@ -0,0 +1,27 @@
#!/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/master && git pull origin master
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
git submodule update --init --recursive --force
php artisan xboard:update
if [ -f "/etc/init.d/bt" ] || [ -f "/.dockerenv" ]; then
chown -R www:www $(pwd);
fi
if [ -d ".docker/.data" ]; then
chmod -R 777 .docker/.data
fi