From 88a47c4231577acc4416523060efe6cbf46f4054 Mon Sep 17 00:00:00 2001 From: purple Date: Tue, 30 May 2023 20:36:51 +0200 Subject: [PATCH] Fix running extension script without root privilages --- blueprint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blueprint.sh b/blueprint.sh index 3308dcf..b01eada 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -365,8 +365,8 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then if [[ $flags == *"-run.afterinstall;"* ]]; then if [[ $(whoami) == "root" ]]; then - log_red "Custom extension installation script will not be ran as root for safety reasons. Running as 'www:data' instead.." - sudo -u www:data .blueprint/.storage/extensiondata/$identifier/install.sh; + log_red "Custom extension installation script will not be ran as root for safety reasons. Running as 'www-data' instead.." + sudo -u www-data .blueprint/.storage/extensiondata/$identifier/install.sh; else log_red "Running custom extension installation script.." bash .blueprint/.storage/extensiondata/$identifier/install.sh;