diff options
author | TheLoko | 2016-02-10 14:08:57 +0100 |
---|---|---|
committer | TheLoko | 2016-02-10 14:08:57 +0100 |
commit | 93f83f7d5e3a7a4b4dd16a164d7b6ff954631949 (patch) | |
tree | 3078f805e1c64697b0952d8517890b3d8312870d /xampp.install | |
download | aur-93f83f7d5e3a7a4b4dd16a164d7b6ff954631949.tar.gz |
Initial import
Diffstat (limited to 'xampp.install')
-rw-r--r-- | xampp.install | 23 |
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} +} |