Archived
1
0

Always call chown intradmin after update

This commit is contained in:
Mercier Pierre-Olivier 2013-09-14 11:16:00 +02:00
parent 1f55ca1bfe
commit 9353d1d4e6
2 changed files with 7 additions and 5 deletions

View File

@ -19,10 +19,11 @@ install:
test -d $(GITOLITE_DEST) && $(MAKEDIR) -p $(GITOLITE_DEST)/update.secondary.d
test -d $(GITOLITE_DEST) && $(COPY) hooks/* $(GITOLITE_DEST)/update.secondary.d/
update: unstall install
upgrade:
update:
$(GIT) pull
$(SHELL) commands/first-install.sh
upgrade: install
unstall:
$(RM) -r $(DEST)/ACU/

View File

@ -21,8 +21,9 @@ done
if ! getent passwd | grep "intradmin:" > /dev/null 2> /dev/null
then
useradd --shell /bin/false --uid 942 intradmin &&
mkdir -p /home/intradmin &&
chown -R intradmin:intradmin /home/intradmin
mkdir -p /home/intradmin
fi
chown -R intradmin:intradmin /home/intradmin
echo "System ready!"