Commit 14951a8c authored by Florian's avatar Florian
Browse files

fix EOF

parent a9e3c979
...@@ -60,7 +60,7 @@ mysql -u root -p"$DATABASE_PASS" -e "CREATE DATABASE `$ETHERPAD_DATABASE`;" ...@@ -60,7 +60,7 @@ mysql -u root -p"$DATABASE_PASS" -e "CREATE DATABASE `$ETHERPAD_DATABASE`;"
mysql -u root -p"$DATABASE_PASS" -e "GRANT CREATE,ALTER,SELECT,INSERT,UPDATE,DELETE on `$ETHERPAD_DATABASE`.* to '$ETHERPAD_DBUSER'@'localhost' identified by '$ETHERPAD_DBPASS';" mysql -u root -p"$DATABASE_PASS" -e "GRANT CREATE,ALTER,SELECT,INSERT,UPDATE,DELETE on `$ETHERPAD_DATABASE`.* to '$ETHERPAD_DBUSER'@'localhost' identified by '$ETHERPAD_DBPASS';"
mysql -u root -p"$DATABASE_PASS" -e "FLUSH PRIVILEGES" mysql -u root -p"$DATABASE_PASS" -e "FLUSH PRIVILEGES"
cat > etherpad.service << EOF cat > etherpad.service <<EOF
[Unit] [Unit]
Description=Etherpad (real-time collaborative document editing) Description=Etherpad (real-time collaborative document editing)
After=syslog.target network.target After=syslog.target network.target
...@@ -75,7 +75,7 @@ ExecStart=$COOPBOX_PATH/etherpad/bin/run.sh ...@@ -75,7 +75,7 @@ ExecStart=$COOPBOX_PATH/etherpad/bin/run.sh
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF >> EOF
sudo mv etherpad.service /etc/systemd/system/etherpad.service sudo mv etherpad.service /etc/systemd/system/etherpad.service
sudo systemctl enable etherpad sudo systemctl enable etherpad
...@@ -94,7 +94,7 @@ sudo -u $COOPBOX_USER cd $COOPBOX_PATH/yeswiki ...@@ -94,7 +94,7 @@ sudo -u $COOPBOX_USER cd $COOPBOX_PATH/yeswiki
# NGINX # NGINX
sudo rm /etc/nginx/sites-enabled/default sudo rm /etc/nginx/sites-enabled/default
sudo cat > /etc/nginx/sites-available/yeswiki << EOF sudo cat > /etc/nginx/sites-available/yeswiki <<EOF
server { server {
listen 80 default_server; listen 80 default_server;
listen [::]:80 default_server; listen [::]:80 default_server;
...@@ -113,7 +113,7 @@ server { ...@@ -113,7 +113,7 @@ server {
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
} }
} }
EOF >> EOF
sudo ln -s /etc/nginx/sites-available/yeswiki /etc/nginx/sites-enabled/yeswiki sudo ln -s /etc/nginx/sites-available/yeswiki /etc/nginx/sites-enabled/yeswiki
sudo systemctl restart nginx sudo systemctl restart nginx
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment