mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-10-28 19:12:53 +00:00
moving chown of tsec:tsec and fixing permission error w/ installer
This commit is contained in:
parent
796fb63c3f
commit
a5628503d2
1 changed files with 2 additions and 1 deletions
|
|
@ -686,6 +686,7 @@ echo "UseRoaming no" | tee -a /etc/ssh/ssh_config
|
||||||
|
|
||||||
# Installing elasticdump, yq
|
# Installing elasticdump, yq
|
||||||
fuBANNER "Installing pkgs"
|
fuBANNER "Installing pkgs"
|
||||||
|
chmod 755 /root/tpot/iso/installer
|
||||||
npm install https://github.com/taskrabbit/elasticsearch-dump -g
|
npm install https://github.com/taskrabbit/elasticsearch-dump -g
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
hash -r
|
hash -r
|
||||||
|
|
@ -816,11 +817,11 @@ chmod 770 -R /data
|
||||||
if [ "$myTPOT_DEPLOYMENT_TYPE" == "iso" ];
|
if [ "$myTPOT_DEPLOYMENT_TYPE" == "iso" ];
|
||||||
then
|
then
|
||||||
usermod -a -G tpot tsec
|
usermod -a -G tpot tsec
|
||||||
|
chown tsec:tsec -R /home/tsec/.ssh
|
||||||
else
|
else
|
||||||
usermod -a -G tpot $(who am i | awk '{ print $1 }')
|
usermod -a -G tpot $(who am i | awk '{ print $1 }')
|
||||||
fi
|
fi
|
||||||
chown tpot:tpot -R /data
|
chown tpot:tpot -R /data
|
||||||
chown tsec:tsec -R /home/tsec/.ssh
|
|
||||||
chmod 644 -R /data/nginx/conf
|
chmod 644 -R /data/nginx/conf
|
||||||
chmod 644 -R /data/nginx/cert
|
chmod 644 -R /data/nginx/cert
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue