21 lines
327 B
Bash
21 lines
327 B
Bash
#!/bin/bash
|
|
|
|
start_service() {
|
|
if systemctl is-active --quiet $1
|
|
then
|
|
echo "$1 is already running"
|
|
else
|
|
sudo systemctl start $1
|
|
echo "$1 started"
|
|
fi
|
|
}
|
|
|
|
if [ ! -d "/run/pica" ]; then
|
|
sudo mkdir /run/pica
|
|
sudo chown $USER:$USER /run/pica
|
|
fi
|
|
|
|
start_service "mariadb"
|
|
start_service "httpd"
|
|
|
|
./@PROJECT_NAME@ |