summaryrefslogtreecommitdiff
path: root/others/setup_2_openstackenv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'others/setup_2_openstackenv.sh')
-rw-r--r--others/setup_2_openstackenv.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/others/setup_2_openstackenv.sh b/others/setup_2_openstackenv.sh
new file mode 100644
index 0000000..e56b66f
--- /dev/null
+++ b/others/setup_2_openstackenv.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# directories
+mkdir ~/work
+mkdir ~/work/mounts
+mkdir ~/work/mounts/private
+mkdir ~/work/mounts/public
+mkdir ~/work/mounts/.localtmp
+
+touch ~/work/mounts/.passwd-s3fs
+chmod 600 ~/work/mounts/.passwd-s3fs
+echo "id:pass" > ~/work/mounts/.passwd-s3fs
+sudo 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
+sudo 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
+