Changeset f49e71c


Ignore:
Timestamp:
11/30/17 01:17:42 (7 years ago)
Author:
Edwin Eefting <edwin@datux.nl>
Branches:
gcc484, master, perl-5.22
Children:
67ad486
Parents:
516e1e9
Message:

run postinstall after installing all packages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • npl/remoteinstall

    r516e1e9 rf49e71c  
    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.