Commit a785efed authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: import script shouldn't erase *.socket files neither

Because slapos.core hardcodes a "supervisord.socket", this file happens to be deleted and cause bugs
parent 315cf333
......@@ -68,7 +68,7 @@ recipe = hexagonit.recipe.download
ignore-existing = true
url = ${:_profile_base_location_}/template/runner-import.sh.jinja2
download-only = true
md5sum = 10317dadb2d06befd154bc5e68beab06
md5sum = 657efd4f6e7552ac8e43fffde1f865a2
filename = runner-import.sh.jinja2
mode = 0644
......
......@@ -20,7 +20,7 @@ restore_element () {
do
cd $backup_path;
if [ -f $element ] || [ -d $element ]; then
command="{{ rsync_binary }} --stats -av --delete --exclude *.sock --exclude *.pid --exclude .installed.cfg --exclude .installed-switch-softwaretype.cfg $backup_path/$element $restore_path"
command="{{ rsync_binary }} --stats -av --delete --exclude *.sock --exclude *.socket --exclude *.pid --exclude .installed.cfg --exclude .installed-switch-softwaretype.cfg $backup_path/$element $restore_path"
echo "Running: \"$command\""
$command
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment