diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-24 09:45:11 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:05 +0100 |
| commit | cc62ca76356dc851006e3fc980cc1dcc46ef9ca6 (patch) | |
| tree | e821a640df8121aaea6e02e814c6a82bc75bac46 /scripts/live-bottom/10adduser | |
| parent | 32e6d9c217846ec5f6d2da9b773a34c4d1970348 (diff) | |
| download | live-boot-cc62ca76356dc851006e3fc980cc1dcc46ef9ca6.tar.gz live-boot-cc62ca76356dc851006e3fc980cc1dcc46ef9ca6.zip | |
Consistently using curly brackets for variables.
Diffstat (limited to 'scripts/live-bottom/10adduser')
| -rwxr-xr-x | scripts/live-bottom/10adduser | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/live-bottom/10adduser b/scripts/live-bottom/10adduser index ed2e14e..d76f143 100755 --- a/scripts/live-bottom/10adduser +++ b/scripts/live-bottom/10adduser @@ -43,8 +43,8 @@ chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << set passwd/make-user true set passwd/root-password-crypted * set passwd/user-password-crypted ${user_crypted} -set passwd/user-fullname $USERFULLNAME -set passwd/username $USERNAME +set passwd/user-fullname ${USERFULLNAME} +set passwd/username ${USERNAME} set passwd/user-uid 999 EOF @@ -80,9 +80,9 @@ then for file in /usr/share/applications/ubiquity-gtkui.desktop /usr/share/applications/kde/ubiquity-kdeui.desktop do - if [ -f "/root/$file" ] + if [ -f "/root/${file}" ] then - chroot /root install -D -o $USERNAME -g $USERNAME $file /home/$USERNAME/Desktop/$(basename "$file") + chroot /root install -D -o ${USERNAME} -g ${USERNAME} ${file} /home/${USERNAME}/Desktop/$(basename "${file}") break fi done @@ -112,15 +112,15 @@ EOF fi fi -if [ -L /root/home/$USERNAME/Examples ] +if [ -L /root/home/${USERNAME}/Examples ] then - chroot /root install -o $USERNAME -g $USERNAME -d /home/$USERNAME/Desktop/ - mv /root/home/$USERNAME/Examples /root/home/$USERNAME/Desktop/ + chroot /root install -o ${USERNAME} -g ${USERNAME} -d /home/${USERNAME}/Desktop/ + mv /root/home/${USERNAME}/Examples /root/home/${USERNAME}/Desktop/ fi if [ -f "/root/usr/share/apps/khelpcenter/plugins/kubuntu/about-kubuntu.desktop.tobemoved" ] then - chroot /root install -D -o $USERNAME -g $USERNAME /usr/share/apps/khelpcenter/plugins/kubuntu/about-kubuntu.desktop.tobemoved /home/$USERNAME/Desktop/about-kubuntu.desktop + chroot /root install -D -o ${USERNAME} -g ${USERNAME} /usr/share/apps/khelpcenter/plugins/kubuntu/about-kubuntu.desktop.tobemoved /home/${USERNAME}/Desktop/about-kubuntu.desktop fi log_end_msg |
