summarylogtreecommitdiffstats
path: root/xampp.install
diff options
context:
space:
mode:
authorTheLoko2016-02-10 14:08:57 +0100
committerTheLoko2016-02-10 14:08:57 +0100
commit93f83f7d5e3a7a4b4dd16a164d7b6ff954631949 (patch)
tree3078f805e1c64697b0952d8517890b3d8312870d /xampp.install
downloadaur-93f83f7d5e3a7a4b4dd16a164d7b6ff954631949.tar.gz
Initial import
Diffstat (limited to 'xampp.install')
-rw-r--r--xampp.install23
1 files changed, 23 insertions, 0 deletions
diff --git a/xampp.install b/xampp.install
new file mode 100644
index 000000000000..d4a156a28a72
--- /dev/null
+++ b/xampp.install
@@ -0,0 +1,23 @@
+post_install() {
+ echo "XAMPP is now installed below the /opt/lampp directory"
+ echo "To start, stop or restart XAMPP simply call the command:"
+ echo " lampp {start, stop, restart} or xampp {start, stop, restart}"
+ echo "Then you can check that everything really works, Just enter the following URL at your web browser:"
+ echo " http://localhost"
+}
+
+pre_upgrade() {
+ /opt/lampp/lampp stop >/dev/null 2>&1
+ }
+
+
+pre_remove() {
+ echo "Stopping lampp services"
+ /opt/lampp/lampp stop >/dev/null 2>&1
+ cp -r /opt/lampp/htdocs /opt/lampp/htdocs_backup
+ echo "Your htdocs folder were backed up to /opt/lampp/htdocs_backup"
+}
+
+post_remove() {
+ rm -rf /opt/lampp/{etc,var}
+}