Bläddra i källkod

Set golang version when creating image

Bob Mottram 7 år sedan
förälder
incheckning
100b2a5ead
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2
    1
      src/freedombone-image-customise

+ 2
- 1
src/freedombone-image-customise Visa fil

1825
     echo "export PATH=\$PATH:\$GOPATH" >> "${rootdir}/home/go/.bashrc"
1825
     echo "export PATH=\$PATH:\$GOPATH" >> "${rootdir}/home/go/.bashrc"
1826
     chroot "$rootdir" chown -R go:go /home/go
1826
     chroot "$rootdir" chown -R go:go /home/go
1827
     cp "${rootdir}/home/go/go${GO_VERSION}/bin/"* "${rootdir}/usr/bin"
1827
     cp "${rootdir}/home/go/go${GO_VERSION}/bin/"* "${rootdir}/usr/bin"
1828
+    echo "upgrade_golang:$GO_VERSION" >> "${rootdir}/root/${PROJECT_NAME}-completed.txt"
1828
 
1829
 
1829
     # Tomb
1830
     # Tomb
1830
     chroot "$rootdir" apt-get -yq install zsh pinentry-curses
1831
     chroot "$rootdir" apt-get -yq install zsh pinentry-curses
1832
     cd "$rootdir/root/build/tomb" || exit 468368345425
1833
     cd "$rootdir/root/build/tomb" || exit 468368345425
1833
     git checkout "$TOMB_COMMIT" -b "$TOMB_COMMIT"
1834
     git checkout "$TOMB_COMMIT" -b "$TOMB_COMMIT"
1834
     chroot "$rootdir" cd /root/build/tomb && make install
1835
     chroot "$rootdir" cd /root/build/tomb && make install
1835
-    echo "tomb commit:$TOMB_COMMIT" >> "$rootdir/root/freedombone-completed.txt"
1836
+    echo "tomb commit:$TOMB_COMMIT" >> "$rootdir/root/${PROJECT_NAME}-completed.txt"
1836
 
1837
 
1837
     if ! grep -q '\* hard maxsyslogins' "$rootdir/etc/security/limits.conf"; then
1838
     if ! grep -q '\* hard maxsyslogins' "$rootdir/etc/security/limits.conf"; then
1838
         echo '* hard maxsyslogins 10' >> "$rootdir/etc/security/limits.conf"
1839
         echo '* hard maxsyslogins 10' >> "$rootdir/etc/security/limits.conf"