Skip to content

Commit b0cc41d

Browse files
committed
Update it to work with v3 mods
1 parent 6af2834 commit b0cc41d

File tree

18 files changed

+21
-49
lines changed

18 files changed

+21
-49
lines changed

root/etc/s6-overlay/s6-rc.d/init-mod-imagename-modname-add-package/dependencies.d/init-mods renamed to root/etc/s6-overlay/s6-rc.d/init-mod-code-server-bat-add-package/dependencies.d/init-mods

File renamed without changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
# This is the init file used for adding os or pip packages to install lists.
4+
# It takes advantage of the built-in init-mods-package-install init script that comes with the baseimages.
5+
# If using this, we need to make sure we set this init as a dependency of init-mods-package-install so this one runs first
6+
#!/usr/bin/with-contenv bash
7+
8+
if ! dpkg -s ripgrep >/dev/null 2>&1; then
9+
echo "**** Adding ripgrep to package install list ****"
10+
echo "ripgrep" >> /mod-repo-packages-to-install.list
11+
else
12+
echo "**** ripgrep already installed, skipping ****"
13+
fi
14+
15+
if ! dpkg -s bat >/dev/null 2>&1; then
16+
echo "**** Adding bat to package install list ****"
17+
echo "bat" >> /mod-repo-packages-to-install.list
18+
else
19+
echo "**** bat already installed, skipping ****"
20+
fi

root/etc/s6-overlay/s6-rc.d/init-mod-imagename-modname-add-package/type renamed to root/etc/s6-overlay/s6-rc.d/init-mod-code-server-bat-add-package/type

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-mod-code-server-bat-add-package/run

root/etc/s6-overlay/s6-rc.d/init-mod-imagename-modname-add-package/run

Lines changed: 0 additions & 30 deletions
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-mod-imagename-modname-add-package/up

Lines changed: 0 additions & 1 deletion
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-mod-imagename-modname-install/run

Lines changed: 0 additions & 8 deletions
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-mod-imagename-modname-install/type

Lines changed: 0 additions & 1 deletion
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-mod-imagename-modname-install/up

Lines changed: 0 additions & 1 deletion
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-mod-imagename-modname-install/dependencies.d/init-mods-package-install renamed to root/etc/s6-overlay/s6-rc.d/init-mods-package-install/dependencies.d/init-mod-code-server-bat-add-package

File renamed without changes.

0 commit comments

Comments
 (0)