I tried to implement git for the #
hubzilla, #
zap and #
streams #
yunohost packages a long time ago. But they removed it while I was away from yunohost.
Here are the steps I wrote for @
RockyIII (rockyiii@huby.infozoo.de) Please feel to improve it.
So, you need to backup your instance first. Yunohost way is prefered, but you can do it manually too(you just need to backup the /var/www/hubzilla folder and the hubzilla mysql database).
$ yunohost backup create -n hubzilla_version_date --app hubzilla --debug
First move the hubzilla folder.
$ mv /var/www/hubzilla /var/www/hubzilla_backup
Clone the Hubzilla in to the /var/www/.
$ cd /var/www
$ git clone https://framagit.org/hubzilla/core.git hubzilla
$ cd hubzilla
$ util/add_addon_repo https://framagit.org/hubzilla/addons.git hzaddons
$ util/importdoc
Copy your files from the hubzilla_backup to hubzilla.
$ cd /var/www/
$ cp -av hubzilla_backup/.htconfig.php hubzilla/.
$ cp -av hubzilla_bacup/store hubzilla/.
$ cp -av hubzilla_backup/cache hubzilla/.
Give proper rights.
$ cd /var/www/
$ chmod -R o-rwx hubzilla
$ chown -R hubzilla:www-data hubzilla
$ chmod -R 775 hubzilla/store hubzilla/cache
Create a log file.
$ cd /var/www
$ touch hubzilla/php.log
Now it should work. Test it, if everything works you can safely remove /var/www/hubzilla_backup.
If things do not work as expected, you have two options. 1. mv hubzilla_backup to hubzilla(risky as database will be updated to latest version).
- Restore with the Yunohost the normal way.