summaryrefslogtreecommitdiff
path: root/others/setup_2_openstackenv.sh
diff options
context:
space:
mode:
authorhc <hc@email.ch>2024-10-02 11:15:50 +0800
committerhc <hc@email.ch>2024-10-02 11:15:50 +0800
commit58f75cd799cefa86a378a78599710de0099cb86a (patch)
tree42e11c53acb2e1414efe5e6a64380ef589f31dea /others/setup_2_openstackenv.sh
parent809a9229b68f4b1385915c152a49e69ebee963a7 (diff)
added ssh agrent forwarding
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
+