Skip to content

Commit

Permalink
Merge pull request #339 from andreapollastri/3.x
Browse files Browse the repository at this point in the history
3.x to Update The Master Branch
  • Loading branch information
andreapollastri authored Dec 18, 2021
2 parents 52c9867 + 00c8417 commit e3a20ca
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,9 @@ echo "${bggreen}${black}${bold}"
echo "Last steps..."
echo "${reset}"
sleep 1s
sudo cp /bin/bash /bin/rbash

sudo chown www-data:cipi -R /var/www/html
sudo chmod -R 750 /var/www/html
sudo echo 'DefaultStartLimitIntervalSec=1s' >> /usr/lib/systemd/system/[email protected]
sudo echo 'DefaultStartLimitBurst=50' >> /usr/lib/systemd/system/[email protected]
sudo echo 'StartLimitBurst=0' >> /usr/lib/systemd/system/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion storage/app/cipi/newsite.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

BASE_PATH=
USER_SHELL=/bin/rbash
USER_SHELL=/bin/bash

while [ -n "$1" ] ; do
case $1 in
Expand Down
4 changes: 2 additions & 2 deletions storage/app/cipi/patch202112181.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# USER PERMISSIONS FIX
sudo cp /bin/bash /bin/rbash
sudo sed -i -e '/cp/s/bin\/bash/bin\/rbash/' /etc/passwd
sudo chown www-data:cipi -R /var/www/html
sudo chmod -R 750 /var/www/html
3 changes: 2 additions & 1 deletion storage/app/cipi/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,8 @@ echo "Last steps..."
echo "${reset}"
sleep 1s

sudo cp /bin/bash /bin/rbash
sudo chown www-data:cipi -R /var/www/html
sudo chmod -R 750 /var/www/html
sudo echo 'StartLimitBurst=0' >> /usr/lib/systemd/system/[email protected]
sudo systemctl daemon-reload

Expand Down

0 comments on commit e3a20ca

Please sign in to comment.