This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
gitea-migration/migrate.sh

18 lines
282 B
Bash
Executable File

#/usr/bin/env bash -e
DUMP=gitea-dump-1630784448
USER=gitea
DATABASE=gitea
cd /tmp/
unzip ${DUMP}.zip
systemctl stop gitea
mv gitea-repositories/* /var/lib/gitea/repositories/
chown -R gitea:gitea /var/lib/gitea
psql -U $USER -d $DATABASE < gitea-db.sql
systemctl start gitea