Skip to content

Commit

Permalink
install cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jay0lee committed Mar 22, 2019
1 parent 267d679 commit 964dddf
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 20 deletions.
16 changes: 1 addition & 15 deletions gyb-setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@
@set /p adminemail= "Please enter your Google email address: "

:createproject
@echo(
@set /p yn= "Are you a G Suite admin backup/restoring mail for your users? [y or n] "
@if /I "%yn%"=="n" (
@ echo(
@ echo If you want to backup G Suite users, you can create an API project later by running:
@ echo(
@ echo gyb --action create-project --email %adminemail%
@ goto alldone
)
@if /I not "%yn%"=="y" (
@ echo(
@ echo Please answer y or n.
@ goto createproject
)
@gyb --action create-project --email %adminemail%
@if not ERRORLEVEL 1 goto projectdone
@echo(
Expand All @@ -25,7 +11,7 @@

:saauth
@echo(
@set /p yn= "Are you ready to authorize GYB to backup/restore G Suite user mail? [y or n] "
@set /p yn= "Are you a G Suite admin backing up user mail? [y or n] "
@if /I "%yn%"=="n" (
@ echo(
@ echo You can authorize a service account later by running:
Expand Down
4 changes: 2 additions & 2 deletions install-gyb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ case $myos in
;;
[Mm]ac[Oo][sS]|[Dd]arwin)
osver=$(sw_vers -productVersion | awk -F'.' '{print $2}')
if (( $osver < 10 )); then
echo_red "ERROR: GYB currently requires MacOS 10.10 or newer. You are running MacOS 10.$osver. Please upgrade."
if (( $osver < 14 )); then
echo_red "ERROR: GYB currently requires MacOS 10.14 or newer. You are running MacOS 10.$osver. Please upgrade."
exit
else
echo_green "Good, you're running MacOS 10.$osver..."
Expand Down
1 change: 0 additions & 1 deletion linux-gyb.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ for d in a.datas:
a.datas.remove(d)
break
a.datas += [('httplib2/cacerts.txt', 'httplib2/cacerts.txt', 'DATA')]
a.datas += [('client_secrets.json', 'client_secrets.json', 'DATA')]
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
Expand Down
1 change: 0 additions & 1 deletion macos-gyb.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ for d in a.datas:
a.datas.remove(d)
break
a.datas += [('httplib2/cacerts.txt', 'httplib2/cacerts.txt', 'DATA')]
a.datas += [('client_secrets.json', 'client_secrets.json', 'DATA')]
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
Expand Down
1 change: 0 additions & 1 deletion windows-gyb.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ for d in a.datas:
a.datas.remove(d)
break
a.datas += [('httplib2/cacerts.txt', 'httplib2\cacerts.txt', 'DATA')]
a.datas += [('client_secrets.json', 'client_secrets.json', 'DATA')]
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
Expand Down

0 comments on commit 964dddf

Please sign in to comment.