summaryrefslogblamecommitdiff
path: root/system/s6/s6.post-upgrade
blob: 3188f031de54a6c26a77a6f5392afff34cd0895e (plain) (tree)
1
2
3
4
5
6
7
8
9
10

            


         
                               
 
                                                 

           


                                                                        

                                                                         






                                                                        


                                                                   

   
  
#!/bin/sh -e

newv="$1"
oldv="$2"

rm -f /etc/runlevels/default/s6

if test `apk version -t "$oldv" 2.9` = "<" ; then

  cat <<EOF

*
* The s6 package has been upgraded. To complete the upgrade, you need to
* restart the supervision tree. If you are using sysvinit, please use the
* following command, run as root:
*
*    s6-svscanctl -t /run/service
*
* Running this command will instantly log everyone out of all the
* terminals that are listed in the GETTYS variable in /etc/conf.d/gettys
* - so please save your work first.
*
* If you are using s6-linux-init, which is the default, please just
* reboot your machine as soon as is convenient for you.
*

EOF
fi