Commit 3bfbc87
committed
Restart daemon on update and add hook args
Bump version to v0.1.51. Improve auto-update flow to detect if the konta daemon is running and automatically restart it via systemctl, with logging and a fallback instruction if restart fails. Propagate context into hook invocations: pass reconciled project list to success hooks and include formatted error messages to failure hooks. Update hooks Runner API to accept arguments (RunSuccess(apps []string), RunFailure(errorMessage string)) and make the internal run() variadic so hook scripts receive these values as command-line arguments.1 parent 5c754bc commit 3bfbc87
3 files changed
+36
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
818 | | - | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
819 | 838 | | |
820 | 839 | | |
821 | 840 | | |
| |||
1128 | 1147 | | |
1129 | 1148 | | |
1130 | 1149 | | |
1131 | | - | |
| 1150 | + | |
1132 | 1151 | | |
1133 | 1152 | | |
1134 | 1153 | | |
| |||
1138 | 1157 | | |
1139 | 1158 | | |
1140 | 1159 | | |
1141 | | - | |
| 1160 | + | |
1142 | 1161 | | |
1143 | 1162 | | |
1144 | 1163 | | |
1145 | 1164 | | |
1146 | 1165 | | |
1147 | 1166 | | |
1148 | 1167 | | |
1149 | | - | |
| 1168 | + | |
1150 | 1169 | | |
1151 | 1170 | | |
1152 | 1171 | | |
| |||
1163 | 1182 | | |
1164 | 1183 | | |
1165 | 1184 | | |
1166 | | - | |
| 1185 | + | |
1167 | 1186 | | |
1168 | 1187 | | |
1169 | | - | |
| 1188 | + | |
1170 | 1189 | | |
1171 | 1190 | | |
1172 | 1191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
| |||
0 commit comments