File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed
distrod_packer/resources/bin Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ ORIG=" $( PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin command -v adduser) "
4
+ if [ -t 0 ]; then
5
+ echo " [Distrod] Run 'sudo /opt/distrod/bin/distrod enable' after this command succeeds." >&2
6
+ echo " [Distrod] It's necessary for Systemd to work as the pseudo init process." >&2
7
+ fi
8
+ " $ORIG " " $@ "
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- ORIG_CHSH= " " $( which -a chsh | tail -n 1 ) " "
3
+ ORIG= " $( PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin command -v chsh ) "
4
4
if [ -t 0 ]; then
5
- echo " [Distrod] Run 'sudo /opt/distrod/distrod enable' after chsh succeeds." >&2
6
- echo " [Distrod] It's necessary for Systemd to work as the init process." >&2
5
+ echo " [Distrod] Run 'sudo /opt/distrod/bin/ distrod enable' after this command succeeds." >&2
6
+ echo " [Distrod] It's necessary for Systemd to work as the pseudo init process." >&2
7
7
fi
8
- " $ORIG_CHSH " " $@ "
8
+ " $ORIG " " $@ "
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ ORIG=" $( PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin command -v useradd) "
4
+ if [ -t 0 ]; then
5
+ echo " [Distrod] Run 'sudo /opt/distrod/bin/distrod enable' after this command succeeds." >&2
6
+ echo " [Distrod] It's necessary for Systemd to work as the pseudo init process." >&2
7
+ fi
8
+ " $ORIG " " $@ "
You can’t perform that action at this time.
0 commit comments