Changeset 34a7c56 for npl/remoteinstall


Ignore:
Timestamp:
12/05/17 13:24:50 (7 years ago)
Author:
Edwin Eefting <edwin@datux.nl>
Branches:
master, perl-5.22
Children:
df958d5
Parents:
9d05a18 (diff), 67ad486 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'gcc483'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • npl/remoteinstall

    r9d05a18 r34a7c56  
    5151                echo "Uploading and installing"
    5252                if scp $OPTS $PKG $TARGET:/tmp/$BASE &&
    53                         ssh $OPTS $TARGET "cd / && syn3-update /tmp/$BASE && rm /tmp/$BASE && postinst.sh"; then
     53                        ssh $OPTS $TARGET "cd / && syn3-update /tmp/$BASE && rm /tmp/$BASE"; then
    5454                        echo "Install on $TARGET OK"
    55                         if [ "$REBOOT" ]; then
    56                         echo "Rebooting box!"
    57                         ssh $OPTS $TARGET "reboot"
    58                         fi
    5955                else
    6056                        echo "######################## INSTALL ON $TARGET FAILED! ######## "
     
    6662done
    6763
     64#run postinstallers
     65for TARGET in $TARGETS; do
     66        (
     67                if ssh $OPTS $TARGET "cd /; postinst.sh"; then
     68                        echo "Install on $TARGET OK"
     69                        if [ "$REBOOT" ]; then
     70                                echo "Rebooting box!"
     71                                ssh $OPTS $TARGET "reboot"
     72                        fi
     73                else
     74                        echo "######################## INSTALL ON $TARGET FAILED! ######## "
     75                fi
     76        ) | sed -u "s/^/$TARGET: /" &
     77done
     78
     79wait
     80
     81
    6882echo "All installs done"
Note: See TracChangeset for help on using the changeset viewer.