whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: prompt for reboot
Date Mon, 25 Nov 2019 14:55:52 GMT
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 <rubys@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


Mime
View raw message