summarylogtreecommitdiffstats
path: root/engelsystem.install
diff options
context:
space:
mode:
authorRubenKelevra2019-01-16 15:48:54 +0100
committerRubenKelevra2019-01-16 15:50:32 +0100
commitfffb77af4f69db5e242fc75434d69ca8cad69d98 (patch)
tree60537ff33e259a49d4e15b062a1579f3a2ccf1bc /engelsystem.install
downloadaur-fffb77af4f69db5e242fc75434d69ca8cad69d98.tar.gz
initial release
Diffstat (limited to 'engelsystem.install')
-rw-r--r--engelsystem.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/engelsystem.install b/engelsystem.install
new file mode 100644
index 00000000000..198f927043a
--- /dev/null
+++ b/engelsystem.install
@@ -0,0 +1,22 @@
+post_install() {
+ echo "enabling the PDO-MySQL module in php"
+ sed -i -e 's/;extension=pdo_mysql/extension=pdo_mysql/' /etc/php/php.ini
+
+ install -dm775 /usr/share/webapps/engelsystem/import
+ chown http:http /usr/share/webapps/engelsystem/import
+ install -dm775 /usr/share/webapps/engelsystem/storage
+ chown http:http /usr/share/webapps/engelsystem/storage
+}
+
+pre_remove() {
+ cp -r /usr/share/webapps/engelsystem /usr/share/webapps/engelsystem_backup
+ echo 'Your Engelsystem folder was backed up to /usr/share/webapps/engelsystem_backup'
+}
+
+post_remove() {
+ rm -rf /usr/share/webapps/engelsystem
+}
+
+post_upgrade() {
+ echo 'Engelsystem was placed in /usr/share/webapps'
+}