jimmy/events (#6)

Co-authored-by: Jimmy Vargo <james@ayo.tokyo>
Reviewed-on: ayo/website#6
This commit is contained in:
corentin 2024-04-09 16:43:42 +09:00 committed by Corentin
commit e3ddda951f
76 changed files with 564 additions and 1 deletions

View file

@ -1,17 +0,0 @@
#! /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