Skip to content

Commit

Permalink
change the order
Browse files Browse the repository at this point in the history
Signed-off-by: szaimen <[email protected]>
  • Loading branch information
szaimen committed Apr 19, 2022
1 parent bea9993 commit 3ed9162
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
#!/bin/bash

# Remove the ssh force logout command
sed -e '/Match User root/d' \
-e '/.*ForceCommand.*droplet.*/d' \
-i /etc/ssh/sshd_config

systemctl restart ssh

# Install Nextcloud AIO
sudo docker run -d \
--name nextcloud-aio-mastercontainer \
Expand All @@ -19,3 +12,10 @@ sudo docker run -d \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
nextcloud/all-in-one:latest

# Remove the ssh force logout command
sed -e '/Match User root/d' \
-e '/.*ForceCommand.*droplet.*/d' \
-i /etc/ssh/sshd_config

systemctl restart ssh

0 comments on commit 3ed9162

Please sign in to comment.