Commit Graph

19 Commits

Author SHA1 Message Date
Zedifus
0255d17707 Replace echo with printf to account for environment inconsistencies.
Echo was being weird, some environments it was not escaping colour codes,
tried adding the '-e' flag, but this was printed weirdly in compose.
2023-10-08 18:29:28 +01:00
Zedifus
706c30775a Fix xargs, and increase log verbosity
xargs would fail when no files were found, -r resolves this by continuing.

moved repair to function to reduce duplicated code
2023-10-08 18:11:00 +01:00
Zedifus
f39c9c5a28 Move repair operations to batches, and null terminate file names
This will allow chgrp and chmod to operate in batches of 100,
instead of starting a process per file

Also null-terminating filenames
to protect against spaces, newlines,
or other potentially problematic characters.
2023-10-08 16:23:56 +01:00
Zedifus
38855ae70f Update echo's to correctly escape colour codes 2023-10-08 16:15:56 +01:00
Zedifus
9ac8400a90 Update permissions check gate on docker starter sh
This will ensure we fire on files only, not directories ie 'import/upload'
2023-10-08 16:13:38 +01:00
Zedifus
68322a3a93 Remove config warning from container init 2023-01-29 19:58:08 +00:00
Zedifus
c0006e47f4 Add version inheretence & config check
Also add pretty colours

Also config check will always return true but meh 🤷‍♂️
If api key location changes it will be accurate
2022-06-16 16:45:08 +01:00
Zedifus
0ed4347254 Change import check from falsy to truthy
I should have really tested this 😅
This should be the last hotpush
2022-06-11 01:43:02 +01:00
Iain Powrie
e34f91396b Fix incorrect import dir path
I'm a diddy
2022-06-10 23:56:50 +00:00
Iain Powrie
47da0ab1aa Wrapper optimisation 2022-06-10 23:30:33 +00:00
Zedifus
57bdeac2c2 Use sudo to drop perms to non-root 2022-03-07 01:51:25 +00:00
Zedifus
7be5cfa449 Fix config check in wrapper
.gitkeep was making the wrapper think config was present on fresh boot..
Whoops!
2022-03-02 13:28:36 +00:00
Zedifus
c6b3210fdf Add final working docker config, root group 2022-03-02 05:16:45 +00:00
Zedifus
53b2b2ed4b Revert my last commit correctly
Man these are so getting squashed
2022-03-01 20:20:17 +00:00
Zedifus
326f5aa78d Revert my last commit 2022-03-01 20:14:53 +00:00
Zedifus
0bacad0245 Apply file perms from env in entrypoint 2022-02-27 20:55:31 +00:00
Zedifus
0de6948b4c Rework rebased Dockerfile for an attempt at userns 2022-02-27 18:38:30 +00:00
Zedifus
690669e1da Fix directory creation issue with docker run 2021-08-30 03:48:36 +01:00
Zedifus
2acc079e63 Create Dockerfile and Wrapper 2021-08-26 03:47:56 +01:00