Created
December 19, 2015 16:41
-
-
Save QuingKhaos/78aa5a39f8ef8b9c609d to your computer and use it in GitHub Desktop.
Sulu temporary mounts
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
#!/usr/bin/env bash | |
make_tmp_mount () { | |
orig=/var/www/project/$1 | |
shm=/run/shm/sulu/$1 | |
mkdir -p ${orig} | |
mkdir -p ${shm} | |
chown -R www-data:www-data ${shm} | |
mountpoint -q ${orig} || sudo -u www-data bindfs ${shm} ${orig} -p 0775 -o nonempty | |
} | |
make_tmp_mount app/cache | |
make_tmp_mount app/data | |
make_tmp_mount app/logs | |
make_tmp_mount web/uploads/media | |
make_tmp_mount vendor | |
cd /var/www/project && composer install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment