mirror of
https://github.com/GNS3/gns3-registry.git
synced 2025-01-02 19:16:41 +00:00
48f179706a
- run scripts as root, no sudo needed within scripts - add shebang to scripts - add "set -ex" to abort scripts on error and to display commands
11 lines
179 B
Bash
11 lines
179 B
Bash
#!/bin/sh
|
|
set -ex
|
|
|
|
# clear repository
|
|
apt-get clean
|
|
|
|
# clear unused space
|
|
echo 'Clearing unused space...'
|
|
dd if=/dev/zero bs=1M of=/zero >/dev/null 2>&1 || true; rm -f /zero
|
|
sync
|