summarylogtreecommitdiffstats
path: root/xampp.install
blob: d4a156a28a72fe6f4d896534a642618bf2afc54b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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}
}