jimmy/events (#6)
Co-authored-by: Jimmy Vargo <james@ayo.tokyo> Reviewed-on: ayo/website#6
This commit is contained in:
parent
83a0903155
commit
e3ddda951f
76 changed files with 564 additions and 1 deletions
17
home/scripts/tmpfs_dirs.sh
Executable file
17
home/scripts/tmpfs_dirs.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#! /bin/bash
|
||||
|
||||
if [[ $(uname) != "Linux" ]]; then
|
||||
echo "Not on Linux : no tmpfs"
|
||||
exit
|
||||
fi
|
||||
|
||||
CWD=$(cd -P . && pwd)
|
||||
readarray -t TMPFS_DIRS < <(df -lt tmpfs --output=target | tail -n +2)
|
||||
|
||||
|
||||
if [[ " ${TMPFS_DIRS[*]} " =~ " ${CWD}/public " ]]; then
|
||||
echo "public alread a tmpfs"
|
||||
else
|
||||
echo "Mounting public as tmpfs"
|
||||
sudo mount -m -t tmpfs tmpfs public
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue