mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-30 05:02:54 +08:00
install missing pgs, REQUIRES
This commit is contained in:
parent
4876b86c49
commit
3be5ed691e
@ -1,14 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# REF: https://superuser.com/questions/32884/sshfs-mount-without-compression-or-encryption
|
# REF: https://superuser.com/questions/32884/sshfs-mount-without-compression-or-encryption
|
||||||
|
|
||||||
|
# Proof of concept, mount /var/cache/apt to a networked location with more free space so can DL packages for Debian/derived upgrade
|
||||||
|
# Useful for raspberry pi SDCARD, other systems you should be able to add another disk (virtual) or use USB external disk
|
||||||
|
# REQUIRES: sshfs, rsync
|
||||||
|
|
||||||
# failexit.mrg
|
# failexit.mrg
|
||||||
function failexit () {
|
function failexit () {
|
||||||
echo '! Something failed! Code: '"$1 $2" # code # (and optional description)
|
echo '! Something failed! Code: '"$1 $2" # code # (and optional description)
|
||||||
exit $1
|
exit $1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Proof of concept, mount /var/cache/apt to a networked location with more free space so can DL packages for Debian/derived upgrade
|
[ $(which sshfs |wc -l) -gt 0 ] || (apt-get update; apt-get install -y sshfs rsync)
|
||||||
# Useful for raspberry pi SDCARD, other systems you should be able to add another disk (virtual) or use USB external disk
|
|
||||||
|
|
||||||
/bin/mv -v /var/cache/apt /var/cache/apt-old
|
/bin/mv -v /var/cache/apt /var/cache/apt-old
|
||||||
mkdir -pv /var/cache/apt
|
mkdir -pv /var/cache/apt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user