Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40c5cdfc authored by Romain Hunault's avatar Romain Hunault
Browse files

Add begin and end scripts

parent a051c34a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -163,6 +163,11 @@ RUN mkdir -p $KEYS_DIR
RUN mkdir -p $LOGS_DIR
RUN mkdir -p $USERSCRIPTS_DIR


# Copy required files
#####################
COPY userscripts /srv/userscripts/

# Install build dependencies
############################
RUN echo 'deb http://deb.debian.org/debian sid main' >> /etc/apt/sources.list

userscripts/begin.sh

0 → 100755
+7 −0
Original line number Diff line number Diff line
#!/bin/bash

# Get local manifests (especiially for specific devices)
cd /srv/local_manifests
if [ ! -d ".git" ]; then git init && git remote add -f origin ssh://git@gitlab.eelo.io:2222/eelo/local_manifests.git; fi
git checkout master
git pull

userscripts/end.sh

0 → 100755
+5 −0
Original line number Diff line number Diff line
#!/bin/bash

# Publish packages
/usr/bin/rsync -avz /srv/zips/ root@images.eelo.io:/eelo/builds/full/
/usr/bin/rsync -avz /srv/zips/ root@ota.eelo.io:/mnt/docker/ota/builds/full/