OSDN Git Service
(root)
/
alterlinux
/
alterlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a10277
)
[fix] : ReFixed xfg-user-dirs-update command
author
hayao
<shun819.mail@gmail.com>
Sun, 20 Sep 2020 15:38:36 +0000
(
00:38
+0900)
committer
hayao
<shun819.mail@gmail.com>
Sun, 20 Sep 2020 15:38:36 +0000
(
00:38
+0900)
channels/share/airootfs.any/root/customize_airootfs.sh
patch
|
blob
|
history
diff --git
a/channels/share/airootfs.any/root/customize_airootfs.sh
b/channels/share/airootfs.any/root/customize_airootfs.sh
index
0adc871
..
d131190
100755
(executable)
--- a/
channels/share/airootfs.any/root/customize_airootfs.sh
+++ b/
channels/share/airootfs.any/root/customize_airootfs.sh
@@
-129,7
+129,7
@@
run_additional_command() {
usermod -s "${usershell}" root
cp -aT /etc/skel/ /root/
-run_additional_command "xdg-user-dirs-update" "(LC_ALL=C; LANG=C; xdg-user-dirs-update)"
+if [[ -f "$(type -p "xdg-user-dirs-update" 2> /dev/null)" ]]; then LC_ALL=C LANG=Cxdg-user-dirs-update; fi
echo -e "${password}\n${password}" | passwd root
# Allow sudo group to run sudo