mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
removed mediadc code; added first memories dependency: perl
This commit is contained in:
parent
8a09d43a21
commit
e6ecd52b70
@ -1,5 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
apt-get update
|
||||
fi
|
||||
5
root/etc/cont-init.d/98-memories-dependency-install
Normal file
5
root/etc/cont-init.d/98-memories-dependency-install
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
echo "**** Installing perl package ****"
|
||||
apk add --no-cache \
|
||||
perl
|
||||
@ -1,26 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# Determine if setup is needed
|
||||
if [ ! -f /usr/local/lib/python***/dist-packages/sshuttle ] && \
|
||||
[ -f /usr/bin/apt ]; then
|
||||
## Ubuntu
|
||||
apt-get install --no-install-recommends -y \
|
||||
iptables \
|
||||
openssh-client \
|
||||
python3 \
|
||||
python3-pip
|
||||
pip3 install sshuttle
|
||||
fi
|
||||
if [ ! -f /usr/lib/python***/site-packages/sshuttle ] && \
|
||||
[ -f /sbin/apk ]; then
|
||||
# Alpine
|
||||
apk add --no-cache \
|
||||
iptables \
|
||||
openssh \
|
||||
py3-pip \
|
||||
python3
|
||||
pip3 install sshuttle
|
||||
fi
|
||||
|
||||
chown -R root:root /root
|
||||
chmod -R 600 /root/.ssh
|
||||
10
root/etc/s6-overlay/s6-rc.d/init-mod-nextcloud-memories-add-package/run
Executable file
10
root/etc/s6-overlay/s6-rc.d/init-mod-nextcloud-memories-add-package/run
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
perl_executable_path=$(which perl)
|
||||
if [ -x "$perl_executable_path" ] ; then
|
||||
echo "**** Adding perl5 and its deps to package install lists ****"
|
||||
echo "perl\
|
||||
" >> /mod-repo-packages-to-install.list
|
||||
else
|
||||
echo "**** perl5 already installed, skipping ****"
|
||||
fi
|
||||
@ -0,0 +1 @@
|
||||
oneshot
|
||||
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-nextcloud-memories-add-package/run
|
||||
@ -1,7 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# This is an example service that would run for the mod
|
||||
# It depends on init-services, the baseimage hook for start of all longrun services
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc /config/www/nextcloud/apps/notify_push/bin/x86_64/notify_push --nextcloud-url https://192.168.10.2:2443 --allow-self-signed --port 7867 /config/www/nextcloud/config/config.php
|
||||
@ -1 +0,0 @@
|
||||
longrun
|
||||
Loading…
x
Reference in New Issue
Block a user