summaryrefslogtreecommitdiff
path: root/setup_2_openstackenv.sh
diff options
context:
space:
mode:
authorhaocheng <email@a.nub.ninja>2024-09-10 17:11:31 +0800
committerhaocheng <email@a.nub.ninja>2024-09-10 17:11:31 +0800
commit00cde1e081c2a31ddc5876d52342888c0926af7a (patch)
tree7a10d40b438549f3a920837093d55da0ba17c0fa /setup_2_openstackenv.sh
hiiii
Diffstat (limited to 'setup_2_openstackenv.sh')
-rw-r--r--setup_2_openstackenv.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/setup_2_openstackenv.sh b/setup_2_openstackenv.sh
new file mode 100644
index 0000000..e56b66f
--- /dev/null
+++ b/setup_2_openstackenv.sh
@@ -0,0 +1,15 @@
1#!/bin/bash
2
3# directories
4mkdir ~/work
5mkdir ~/work/mounts
6mkdir ~/work/mounts/private
7mkdir ~/work/mounts/public
8mkdir ~/work/mounts/.localtmp
9
10touch ~/work/mounts/.passwd-s3fs
11chmod 600 ~/work/mounts/.passwd-s3fs
12echo "id:pass" > ~/work/mounts/.passwd-s3fs
13sudo s3fs s3ch1 ~/work/mounts/private -o passwd_file=~/work/mounts/.passwd-s3fs -o url=https://s3.pub1.infomaniak.cloud -o allow_other -o use_cache=~/work/mounts/.localtmp/ -o umask=000 -o use_path_request_style
14sudo s3fs s3ch1-public ~/work/mounts/public -o passwd_file=~/work/mounts/.passwd-s3fs -o url=https://s3.pub1.infomaniak.cloud -o allow_other -o use_cache=~/work/mounts/.localtmp/ -o umask=000 -o use_path_request_style
15