removed mediadc code; added first memories dependency: perl

This commit is contained in:
Jonathan Treffler 2022-12-27 00:24:33 +00:00
parent 8a09d43a21
commit e6ecd52b70
11 changed files with 17 additions and 39 deletions

View File

@ -1,5 +0,0 @@
#!/usr/bin/with-contenv bash
if [ -f /usr/bin/apt ]; then
apt-get update
fi

View File

@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash
echo "**** Installing perl package ****"
apk add --no-cache \
perl

View File

@ -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

View 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

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-nextcloud-memories-add-package/run

View File

@ -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