-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update clean shells on metwork-framework.org
- Loading branch information
1 parent
e9350a1
commit 7e07fcc
Showing
3 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
|
||
find /home/buildcache -type f -atime +30 -exec rm -f {} \; >/dev/null 2>&1 | ||
chown -RL metworkpub:metworkpub /home/buildcache | ||
chmod -R 755 /home/buildcache | ||
find /buildcache -type f -mtime +7 -exec rm -f {} \; >/dev/null 2>&1 | ||
chown -RL metworkpub:metworkpub /buildcache | ||
chmod -R 755 /buildcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
/bin/echo "docker size before clean " `/bin/du -sh /var/lib/docker` | ||
/bin/echo y | /bin/docker system prune | ||
/bin/echo "docker size after clean " `/bin/du -sh /var/lib/docker` |