Check that the initial setup really did complete
This commit is contained in:
parent
8ca47c2c30
commit
b277b5e570
|
@ -407,6 +407,8 @@ EOF
|
||||||
fi
|
fi
|
||||||
echo ' if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
|
echo ' if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
|
||||||
echo " if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
|
echo " if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
|
||||||
|
echo " # Check that the initial setup really did complete" >> $rootdir/root/.bashrc
|
||||||
|
echo " if grep -q 'tripwire' ~/${PROJECT_NAME}-completed.txt; then" >> $rootdir/root/.bashrc
|
||||||
# Remove the initial setup files
|
# Remove the initial setup files
|
||||||
echo ' rm /root/.initial_setup' >> $rootdir/root/.bashrc
|
echo ' rm /root/.initial_setup' >> $rootdir/root/.bashrc
|
||||||
echo ' rm /home/fbone/.initial_setup' >> $rootdir/root/.bashrc
|
echo ' rm /home/fbone/.initial_setup' >> $rootdir/root/.bashrc
|
||||||
|
@ -440,6 +442,7 @@ EOF
|
||||||
echo ' fi' >> $rootdir/root/.bashrc
|
echo ' fi' >> $rootdir/root/.bashrc
|
||||||
echo ' reboot' >> $rootdir/root/.bashrc
|
echo ' reboot' >> $rootdir/root/.bashrc
|
||||||
echo ' fi' >> $rootdir/root/.bashrc
|
echo ' fi' >> $rootdir/root/.bashrc
|
||||||
|
echo ' fi' >> $rootdir/root/.bashrc
|
||||||
echo ' else' >> $rootdir/root/.bashrc
|
echo ' else' >> $rootdir/root/.bashrc
|
||||||
echo ' key=' >> $rootdir/root/.bashrc
|
echo ' key=' >> $rootdir/root/.bashrc
|
||||||
echo ' while [[ $key != "x" ]]; do' >> $rootdir/root/.bashrc
|
echo ' while [[ $key != "x" ]]; do' >> $rootdir/root/.bashrc
|
||||||
|
|
Loading…
Reference in New Issue