1 DATE
:=`date --iso-8601`
3 # recipes for installing this thing onto a "real" (non-chroot) system
4 setup-real-system
: probe-files install-pkgs install-drupal do-mysql
6 # test that we have /install-{drupal-toolchain,packages}.sh /pkgs /sqldefaults and /do-mysql-sh
7 # if we don't have all of these files, BAD THINGS may happen
9 [ -f
/install-packages.sh
]
11 [ -f
/install-drupal-toolchain.sh
]
16 chmod
+x
/install-drupal-toolchain.sh
17 /install-drupal-toolchain.sh
20 chmod
+x
/install-packages.sh
26 # secure these two files because they contain passwords in plaintext
27 chmod og-rwx
/do-mysql.sh
28 chmod
0600 /sqldefaults
30 # recipes for building a chroot. notice that sql does not cooperate with chroots, due to some funky postinstall hooks and /proc namespaces conflicting
31 build-chroot
: new-chroot install-pkgs-in-chroot install-drupal-toolchain
36 debootstrap
--merged-usr etiona .
/tristrap
/ http
://mirror.fsf.org
/trisquel
/
38 install-pkgs-in-chroot
:
39 cp files
/pkgs tristrap
40 cp files
/install-packages.sh tristrap
41 chmod
+x tristrap
/install-packages.sh
42 chroot tristrap
/install-packages.sh
44 install-drupal-toolchain
:
45 cp files
/install-drupal-toolchain.sh tristrap
46 chmod
+x tristrap
/install-drupal-toolchain.sh
47 chroot tristrap
/install-drupal-toolchain.sh