feat: automatic db creation and migration

This commit is contained in:
2026-08-28 16:32:25 +03:00
parent 114ba523f4
commit 4fbb8a8e2e
9 changed files with 104 additions and 120 deletions
+23
View File
@@ -0,0 +1,23 @@
set -e
# copy only nessesary files
echo "Copying files..."
mkdir -p dist
cp -r *.php sql-updates/ adm/ dist/
set +e
echo "Downloading phpLiteAdmin"
wget -nc https://bitbucket.org/phpliteadmin/public/downloads/phpLiteAdmin_v1-9-8-2.zip
unzip phpLiteAdmin_v1-9-8-2.zip phpliteadmin.php
mv phpliteadmin.php dist/adm
echo "Cleaning up"
rm -f phpLiteAdmin_v1-9-8-2.zip
set -e
rm -f dist/k-api.updates-status.php
echo "
Done."