Skip to content

Commit

Permalink
what the fuck
Browse files Browse the repository at this point in the history
  • Loading branch information
xaqbr committed Jul 19, 2024
1 parent 6b761cc commit 73ed238
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions userpatches/customize-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ EOF
systemctl enable dmbp-install-armbian
systemctl enable dmbp-app-queue-worker
systemctl enable dmbp-app-schedule-worker
systemctl enable dmbp-app-websocket-server
systemctl enable ssh
systemctl enable mnt-media.mount

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description = DMBP Services - App Refresh System storage

[Service]
Type=oneshot
ExecStart=/bin/sleep 2
ExecStart=/bin/sudo -Hu www-data /bin/php /src/dmbpro/artisan app:refresh-system-storage

[Install]
WantedBy=multi-user.target
2 changes: 2 additions & 0 deletions userpatches/overlay/rootfs/etc/udev/rules.d/99-dmbp.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ACTION=="add", SUBSYSTEM=="block", ENV{UDISKS_FILESYSTEM_SHARED}="1", ENV{SYSTEMD_WANTS}+="dmbp-app-refresh-system-storage"
ACTION=="remove", SUBSYSTEM=="block", RUN+="/bin/systemctl start dmbp-app-refresh-system-storage"
3 changes: 3 additions & 0 deletions userpatches/overlay/rootfs/etc/udisks2/mount_options.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Default]
defaults=gid=33,uid=33
allow=gid=33,uid=33

0 comments on commit 73ed238

Please sign in to comment.