9 Commits

Author SHA1 Message Date
Willow Barraco
92eab557ae Fix existing migration with non shell hooks
they could be binaries anyway
2023-03-21 09:54:06 +01:00
Willow Barraco
acd9850577 Do not migrate non sh scripts 2023-03-21 09:47:49 +01:00
ArenM
27c663a896 Fix order of -maxdepth find argument
Gnu find outputs a warning if the maxdepth option appears after any
positional options, such as filtering files, because maxdepth also
affects options that come before it.

As a side note, maxdepth appears to be gnu extension that busybox picked
up, so we might want to be careful about using it.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-01-25 10:07:24 +01:00
Jami Kettunen
b005014c9a migrations: 1.9.0.0: silence error on cd to hooks dir
Silences following from logs (in case user has no custom hooks):

  /usr/share/sxmo/migrations/1.9.0.0.sh: 8: cd: can't cd to /home/<user>/.config/sxmo/hooks/

Since the migration script exits anyway if this cd fails this just
pollutes logs during startup.

Signed-off-by: Jami Kettunen <jami.kettunen@protonmail.com>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2022-04-19 22:56:45 -04:00
Anjandev Momi
1123c0f072 Change license to AGPL-3.0-only 2022-03-15 08:00:00 -04:00
Stacy Harper
2d490bb6f8 Migration 1.9.0, prevent touching hooks needing migrations 2022-02-12 10:51:24 +01:00
Stacy Harper
30c6ccb5ea Dont do anything if there is no hooks at all 2022-02-12 10:22:23 +01:00
Stacy Harper
b031bd5525 Migration 1.9.0, off hook has been renamed to screenoff 2022-02-12 10:15:49 +01:00
Stacy Harper
cdaa1f3a81 Move migrations outside of path and execute them automatically 2022-02-12 10:15:48 +01:00