Always call chown intradmin after update
This commit is contained in:
parent
1f55ca1bfe
commit
9353d1d4e6
7
Makefile
7
Makefile
@ -19,10 +19,11 @@ install:
|
|||||||
test -d $(GITOLITE_DEST) && $(MAKEDIR) -p $(GITOLITE_DEST)/update.secondary.d
|
test -d $(GITOLITE_DEST) && $(MAKEDIR) -p $(GITOLITE_DEST)/update.secondary.d
|
||||||
test -d $(GITOLITE_DEST) && $(COPY) hooks/* $(GITOLITE_DEST)/update.secondary.d/
|
test -d $(GITOLITE_DEST) && $(COPY) hooks/* $(GITOLITE_DEST)/update.secondary.d/
|
||||||
|
|
||||||
update: unstall install
|
update:
|
||||||
|
|
||||||
upgrade:
|
|
||||||
$(GIT) pull
|
$(GIT) pull
|
||||||
|
$(SHELL) commands/first-install.sh
|
||||||
|
|
||||||
|
upgrade: install
|
||||||
|
|
||||||
unstall:
|
unstall:
|
||||||
$(RM) -r $(DEST)/ACU/
|
$(RM) -r $(DEST)/ACU/
|
||||||
|
@ -21,8 +21,9 @@ done
|
|||||||
if ! getent passwd | grep "intradmin:" > /dev/null 2> /dev/null
|
if ! getent passwd | grep "intradmin:" > /dev/null 2> /dev/null
|
||||||
then
|
then
|
||||||
useradd --shell /bin/false --uid 942 intradmin &&
|
useradd --shell /bin/false --uid 942 intradmin &&
|
||||||
mkdir -p /home/intradmin &&
|
mkdir -p /home/intradmin
|
||||||
chown -R intradmin:intradmin /home/intradmin
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chown -R intradmin:intradmin /home/intradmin
|
||||||
|
|
||||||
echo "System ready!"
|
echo "System ready!"
|
Reference in New Issue
Block a user