You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2019/11/25 14:55:52 UTC

[whimsy] branch master updated: prompt for reboot

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 4718a23  prompt for reboot
4718a23 is described below

commit 4718a2331b3d82ccb671a65151253a8c86a95429
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Mon Nov 25 09:55:22 2019 -0500

    prompt for reboot
---
 config/setupmymac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/config/setupmymac b/config/setupmymac
index 211d76d..beb697f 100755
--- a/config/setupmymac
+++ b/config/setupmymac
@@ -119,6 +119,8 @@ unless Dir.exist? '/srv'
       unless File.read(SYNTHETIC).include? "/var/whimsy"
         File.write SYNTHETIC, File.read(SYNTHETIC) + "srv\t/var/whimsy\n"
         STDERR.puts "#{SYNTHETIC} updated; reboot machine and rerun this script"
+        puts %(\nPress "y" to reboot now, anything else to exit)
+        system "shutdown -r now" if gets.strip.downcase == "y"
         exit 1
       end
     else