home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45ad72f
)
Remove unneeded bashrcs.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 11 Dec 2015 02:14:41 +0000
(
03:14
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 11 Dec 2015 02:14:41 +0000
(
03:14
+0100)
jessie_start_server.sh
patch
|
blob
|
history
diff --git
a/jessie_start_server.sh
b/jessie_start_server.sh
index a0a8e90668e6ad459b54badf6a37e1aa12d1a0d9..2e9e19e4a30a55e6341b7ebdf60a8b4b701c1db2 100755
(executable)
--- a/
jessie_start_server.sh
+++ b/
jessie_start_server.sh
@@
-5,6
+5,9
@@
set -e
# Set root pw.
passwd
# Set root pw.
passwd
+# Remove unused .bashrc.
+rm ~/.bashrc
+
# Post-installation reduction.
dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > list_white_unsorted
echo 'ifupdown' >> list_white_unsorted
# Post-installation reduction.
dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > list_white_unsorted
echo 'ifupdown' >> list_white_unsorted
@@
-73,6
+76,7
@@
config/symlink.sh
# Add user. Remove old user's config/ if it exists.
useradd -m -s /bin/bash plom
# Add user. Remove old user's config/ if it exists.
useradd -m -s /bin/bash plom
+rm /home/plom/.bashrc
rm -rf /home/plom/config
su - plom -c 'git clone http://github.com/plomlompom/config /home/plom/config'
su plom -c '/home/plom/config/symlink.sh server'
rm -rf /home/plom/config
su - plom -c 'git clone http://github.com/plomlompom/config /home/plom/config'
su plom -c '/home/plom/config/symlink.sh server'