ctucx.git: alpine-pkgs

My personal alpine-packages [deprecated in favor of nixos]

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
--- pleroma/installation/init.d/pleroma
+++ pleroma2/installation/init.d/pleroma
@@ -3,9 +3,9 @@
 supervisor=supervise-daemon

 # Requires OpenRC >= 0.35
-directory=/opt/pleroma
+directory=/usr/lib/pleroma

-command=/opt/pleroma/bin/pleroma
+command="/usr/lib/pleroma/bin/pleroma"
 command_args="start"
 command_user=pleroma
 command_background=1
@@ -18,4 +18,10 @@
 depend() {
     want nginx
     need postgresql
+}
+
+start_pre() {
+    checkpath -d -o pleroma:pleroma /var/lib/pleorma;
+    checkpath -d -o pleroma:pleroma /etc/pleroma;
+    /usr/lib/pleroma/bin/pleroma_ctl migrate
 }