fix spelling & indention
This commit is contained in:
parent
608faaa76b
commit
f1a1ba3432
@ -15,12 +15,12 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
curl \
|
curl \
|
||||||
mc \
|
mc \
|
||||||
sudo \
|
sudo \
|
||||||
gnupg2 \
|
gnupg2 \
|
||||||
mariadb-server \
|
mariadb-server \
|
||||||
redis
|
redis
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setting up Adoptium Repository"
|
msg_info "Setting up Adoptium Repository"
|
||||||
@ -42,10 +42,10 @@ $STD mysql -u root -e "CREATE DATABASE $DB_NAME;"
|
|||||||
$STD mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');"
|
$STD mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');"
|
||||||
$STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
|
$STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
|
||||||
{
|
{
|
||||||
echo "Plant-it Credentials"
|
echo "Plant-it Credentials"
|
||||||
echo "Plant-it Database User: $DB_USER"
|
echo "Plant-it Database User: $DB_USER"
|
||||||
echo "Plant-it Database Password: $DB_PASS"
|
echo "Plant-it Database Password: $DB_PASS"
|
||||||
echo "Plant-it Database Name: $DB_NAME"
|
echo "Plant-it Database Name: $DB_NAME"
|
||||||
} >>~/plant-it.creds
|
} >>~/plant-it.creds
|
||||||
msg_ok "Set up MariaDB"
|
msg_ok "Set up MariaDB"
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ After=syslog.target network.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/opt/plant-it/
|
WorkingDirectory=/opt/plant-it/
|
||||||
ExecStart=/usr/bin/java -jar -Xmx2g server.jar
|
ExecStart=/usr/bin/java -jar -Xmx2g server.jar
|
||||||
EnvoirmentFile=/opt/plant-it/server.env
|
EnvironmentFile=/opt/plant-it/server.env
|
||||||
TimeoutStopSec=20
|
TimeoutStopSec=20
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user