Skip to content
Snippets Groups Projects
Commit a3757145 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

install issues

parent f2864e6d
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,9 @@ in `/etc/fuse.conf`
### Python modules
```
mkdir -p /usr/local/share/vl-gitfs
cd /usr/local/share/vl-gitfs
###chown nobody /var/run/mount/vl-gitfs
###chmod u+rwe /var/run/mount/vl-gitfs
mkdir /var/lib/gitfs
......@@ -51,10 +53,26 @@ pip-sync
chown -R nobody.nogroup /usr/local/share/vl-gitfs
```
```
mkdir -p /usr/local/share/vl-gitfs
cd /usr/local/share/vl-gitfs
curl --silent --insecure --output - \
https://a75436.berlin.ptb.de/vaclab/vl-gitfs/-/archive/master/vl-gitfs-master.tar \
| tar xf - --strip-components=1 # only once
sudo apt install python3-pip gcc # openSUSE: sudo zypper in python3-pip gcc
python3 -m venv .
source bin/activate
pip3 install pip-tools six appdirs packaging ordered_set
pip-compile --output-file=requirements.txt requirements.in
pip3 install -r requirements.txt
chown -R nobody.nogroup $PWD # openSUSE: chown -R nobody.nobody $PWD
deactivate
```
## Automatic mounting
```
cd vl_gitfs
cd /usr/local/share/vl-gitfs
systemctl daemon-reload
systemctl link $PWD/vl-gitfs.service
systemctl enable vl-gitfs.service # make permanent
......
gitfs
six
appdirs
packaging
ordered_set
......@@ -10,10 +10,10 @@ Environment=HOME=/var/lib/nobody
Environment=FROM=/home/vl_db2git/
Environment=TO=/var/run/mount/vl-gitfs
ExecStartPre=/bin/mkdir -p ${TO}
ExecStart=/bin/bash -c 'if $(mountpoint -q "${TO}"); then true; else \
ExecStart=/bin/bash -c 'if $(mountpoint -q ${TO}); then true; else \
./doMount ${FROM} ${TO}; fi'
ExecStop=/bin/bash -c 'if ! $(mountpoint -q "${TO}"); then true; else \
fusermount -zu "${TO}"; fi'
ExecStop=/bin/bash -c 'if ! $(mountpoint -q ${TO}); then true; else \
fusermount -zu ${TO}; fi'
[Install]
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment