From f795412d84caa5fbb950101f484ef85982679836 Mon Sep 17 00:00:00 2001 From: konsthol Date: Sat, 2 Mar 2024 19:50:34 +0200 Subject: [PATCH] copy and paste is not a design pattern --- harden | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/harden b/harden index 122dde7..179c6d8 100755 --- a/harden +++ b/harden @@ -389,7 +389,7 @@ EOF # For portainer (and watchtower), we will be using the --runtime=runc option to run it with runc because # it doesn't work with runsc as it is not exposing the docker socket to the container # but containers downloaded from it will still use runsc - # Note: If a new install of Portainer is not configured within 5 minutes, + # Note: If a new install of Portainer is not configured within 5 minutes, # it shuts down internally for security reasons but that does not matter since # we reboot after the script is done. sudo -E runuser - secdep -c 'docker run --runtime=runc -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always -v /run/user/$UID/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce' @@ -728,7 +728,7 @@ function main { # If the username is not secdep, reboot the system in 1 minute # We reboot just in case there are any updates that need to be applied # It was not the original intention of the script to reboot the system but it is better to be safe than sorry - # We also wait (for 1 or 3 minutes depending on the user running it) so that the script can finish as we + # We also wait (for 1 or 3 minutes depending on the user running it) so that the script can finish as we # want to see the exit code. if [[ "$USER" != "secdep" ]]; then sudo shutdown -r +3