A
A
AlexeyMish2018-03-15 09:41:33
Google Cloud Platform
AlexeyMish, 2018-03-15 09:41:33

How to connect google bucket on upload?

I can not connect storage, when loading.
found an example of a service for systemd, edited it for myself.

[Unit]
Description=Google Cloud Storage FUSE mounter
After=local-fs.target network-online.target google.service sys-fs-fuse-connections.mount
Before=shutdown.target
[Service]
Type=forking
User=apache
ExecStart= /bin/gcsfuse --key-file=/home/alexeymish/test1-087057f69913.json dtco-rsync-dst /mnt/dtco-rsync-dst
ExecStop=/bin/fusermount -u /mnt/dtco-rsync-dst
Restart =always
[Install]
WantedBy=multi-user.target

But here the launch is on behalf of Apache, I don’t have such a user.
Tell me how to edit the config correctly?
Should I put the key-file in /home/user or will there be problems accessing it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question