ncaq
48f5f0e52f
fixed: CMAKE_INSTALL_FULL_LIBDIR -> CMAKE_INSTALL_FULL_LIBEXECDIR
...
Because, It must equal GRIVE_SYNC_SH_BINARY and actual grive-sync.sh path.
I patched my gentoo overlay ebuild.
[added: grive: libexec patch · ncaq/ncaq-overlay@ed3354f ](ed3354fbb7
)
2021-07-08 14:41:19 +09:00
Vitaliy Filippov
e6fcc637f8
Merge pull request #245 from jankatins/revert_symlink_handling_in_sync
...
Revert "Exclude symlinks from sync"
2021-05-27 23:44:58 +03:00
Vitaliy Filippov
dedb762b74
Merge pull request #246 from jankatins/add-main-systemd-unit
...
Add systemd unit to enable both timer and changes based syncs
2021-05-27 22:50:41 +03:00
Jan Katins
050fcf53a0
Move helper script into libexec dir
...
This seems to be a proper dir for such "not-for-normal-user" things...
2021-03-30 15:19:53 +02:00
Jan Katins
5510ca1b06
More consistent directory name output in logs
2021-03-15 14:24:36 +01:00
Jan Katins
4dfc9a5461
Install grive-sync.sh into the right libdir
2021-03-15 14:12:31 +01:00
Jan Katins
378df2867b
Do explicit unlocks in grive-sync.sh script
2021-03-15 13:30:46 +01:00
Jan Schulz
1bab757298
Add systemd unit to enable both timer and changes based syncs
...
Now it's enough to enable and start `grive@<folder>.service`.
2021-03-14 22:49:59 +01:00
Jan Schulz
c7a949dedd
Revert "Exclude symlinks from sync"
...
This reverts commit b47dd70f35
.
This could trigger a infinite loop between the timer unit (running a sync and changing the griveignore file at the start) and the changes unit (reacting to the griveignore change and retriggering the sync).
2021-03-14 22:46:43 +01:00
Michael Bartlett
7b42e2da5b
fix systemd-escape hyphen usage
2020-03-03 13:34:27 -07:00
Jan Schulz
e3e18fe16a
Escape folder when calling sync from change listener
...
The old version would pass in an unescaped directory, which then got unescaped by the sync call.
In some cases it worked but resulted in foldername wold not matched reality (example: google-drive -> google/drive) and error out when checking if that folder exists.
2018-12-05 00:10:41 +01:00
psfloyd
b47dd70f35
Exclude symlinks from sync
2018-05-12 23:12:45 -03:00
psfloyd
d698d596d9
Can enable services systemd excaped
2017-12-08 00:23:17 -03:00
psfloyd
94bda77b1b
Removed debug line
2017-12-04 02:33:53 -03:00
psfloyd
70c5c64373
Fix for service files and script to work with directories with spaces in their names
2017-12-01 00:12:14 -03:00
Jan Schulz
d996989c29
Add user systemd units
...
The units can be used to automatically sync a folder in the users home dir
* every 3 minutes
* on local file changes (requires inotify-tools).
To enable the units for `~/google-drive/`:
```
systemctl --user enable grive-timer@google-drive.timer
systemctl --user start grive-timer@google-drive.timer
systemctl --user enable grive-changes@google-drive.service
systemctl --user start grive-changes@google-drive.service
```
The units can be enabled multiple times
2017-04-27 23:18:54 +02:00