mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
continuous deployment (#2485)
* continuous deployment * fix * escape braces in format string * Update upload-ota.sh * curl fail on http error
This commit is contained in:
@@ -6,12 +6,14 @@
|
||||
# Then we are going to make sure that each of these files is then put on the rsyncd server
|
||||
# so the embassies can pull them down
|
||||
|
||||
date >> /var/log/resyncRsyncRegistry.runlog
|
||||
|
||||
|
||||
cat > /etc/rsyncd.conf << RD
|
||||
uid = root
|
||||
gid = root
|
||||
use chroot = yes
|
||||
max connections = 50
|
||||
max connections = 4
|
||||
pid file = /var/run/rsyncd.pid
|
||||
exclude = lost+found/
|
||||
timeout = 900
|
||||
@@ -27,7 +29,7 @@ do
|
||||
filename=${dir##*/}
|
||||
version=$(echo $directory | sed -r 's/.*\///')
|
||||
version_dir="/srv/rsync/$version"
|
||||
type=$(echo "$filename" | sed -r "s/^.*?\.(\w+)\.squashfs$/\1/")
|
||||
type=$(echo "$filename" | sed -r "s/^.*?\.([a-z0-9_-]+)\.squashfs$/\1/")
|
||||
new_dir="$version_dir/$type"
|
||||
|
||||
|
||||
@@ -51,4 +53,4 @@ INSERTING
|
||||
done
|
||||
|
||||
echo "Created rsyncd.conf file, restarting service"
|
||||
systemctl restart rsync
|
||||
systemctl restart rsync
|
||||
Reference in New Issue
Block a user