From 20b1bb04b65e220ba1199b79c0b1c416200fa7a1 Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Wed, 19 Feb 2020 12:48:28 -0600 Subject: [PATCH] fix permissions on / --- install | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install b/install index 1fdd15b..2735ee5 100755 --- a/install +++ b/install @@ -1,6 +1,6 @@ #!/bin/bash # -# shellcheck disable=SC1091,SC1117,SC2016,SC2046,SC2086 +# shellcheck disable=SC1090,SC1091,SC1117,SC2016,SC2046,SC2086 # # Copyright (c) 2015-2020 OpenMediaVault Plugin Developers # Copyright (c) 2017-2020 Armbian Developers @@ -65,6 +65,11 @@ while getopts "fh" opt; do esac done +# Fix permissions on / if wrong +echo "Current / permissions = $(stat -c %a /)" +chmod g-w,o-w / +echo "New / permissions = $(stat -c %a /)" + echo "Updating repos before installing..." apt-get update