You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -179,6 +185,27 @@ if [[ -e /mnt/dietpi_userdata ]]; then
179
185
chmod +x /usr/bin/node-red-start
180
186
else
181
187
188
+
if [[ -e /mnt/dietpi_userdata &&"$ONDIET"=="y" ]];then
189
+
DIETPI="y"
190
+
echo -ne "\n\033[1;32mDietPi\033[0m detected but going to force install of Node-RED.\n"
191
+
echo -ne "\nThis should only be done if you DO NOT use the dietpi-software\ninstaller to set up nodejs and node-red.\n"
192
+
echo -ne "\nTrying to mix both will quite probably break something - Use at your own risk.\n\n"
193
+
read -t 10 -p "Are you really sure you want to force install on DietPi ? (y/N) ? " yn
194
+
case$ynin
195
+
[Yy]* )
196
+
;;
197
+
* )
198
+
echo""
199
+
exit 1
200
+
;;
201
+
esac
202
+
echo -ne "\nOK - fingers crossed.\n\n"
203
+
apt install -y python3-rpi.gpio 2>&1|$SUDO tee -a /var/log/nodered-install.log >>/dev/null
204
+
CONFIRM_ROOT="y"
205
+
CONFIRM_INSTALL="y"
206
+
CONFIRM_PI="y"
207
+
fi
208
+
182
209
if [ "$EUID"=="0" ];then
183
210
# if [[ $SUDO_USER != "" ]]; then
184
211
echo -en "\nroot user detected. Typical installs should be done as a regular user.\r\n"
@@ -683,7 +710,7 @@ case $yn in
683
710
then
684
711
:# silent procedure
685
712
else
686
-
echo"Customized systemd script found @ $SYSTEMDFILE. To prevent loss of modifications, we'll not recreate the systemd script."|$SUDO tee -a /var/log/nodered-install.log >>/dev/null
713
+
echo"Customized systemd script found @ $SYSTEMDFILE. To prevent loss of modifications, we will not recreate the systemd script."|$SUDO tee -a /var/log/nodered-install.log >>/dev/null
687
714
echo"If you want the installer to recreate the systemd script, please delete or rename the current script & re-run the installer."|$SUDO tee -a /var/log/nodered-install.log >>/dev/null
0 commit comments