We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 857b5a5 commit 966f1a7Copy full SHA for 966f1a7
scripts/install.sh
@@ -99,7 +99,7 @@ fi
99
echo -e "${COLOR}[3/4]${ENDC} Launching the mytoninstaller.py"
100
parent_name=$(ps -p $PPID -o comm=)
101
user=$(whoami)
102
-if [ "$parent_name" = "sudo" ]; then
+if [ "$parent_name" = "sudo" ] || [ "$parent_name" = "su" ]; then
103
user=$(logname)
104
fi
105
python3 ${SOURCES_DIR}/mytonctrl/mytoninstaller.py -m ${mode} -u ${user} -t ${telemetry} --dump ${dump}
0 commit comments