mysql: Fix updating the package.

The mysql server daemon will now be stopped before the update
is executed and all configuration and data files will be
backed up.
This commit is contained in:
Michael Tremer
2014-01-26 16:55:33 +01:00
parent fa37e705d9
commit 98f3d9b581
6 changed files with 49 additions and 3 deletions

View File

@@ -100,5 +100,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
chgrp -v mysql /srv/mysql{,/test,/mysql}
chown mysql.mysql /srv/mysql/
install -v -m755 -o mysql -g mysql -d /var/run/mysql
install -v -m 644 $(DIR_SRC)/config/backup/includes/mysql \
/var/ipfire/backup/addons/includes/mysql
@rm -rf $(DIR_APP)
@$(POSTBUILD)