Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Primtux-Eole
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Grenoble
Primtux-Eole
Commits
668ad608
Unverified
Commit
668ad608
authored
May 27, 2019
by
David Beniamine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto migrate to primtux3
parent
9c32a946
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
migrate_to_primtux4.sh
migrate_to_primtux4.sh
+12
-2
upgrade-session.sh
upgrade-session.sh
+6
-1
No files found.
migrate_to_primtux4.sh
View file @
668ad608
#!/bin/bash
DIR
=
$(
dirname
$0
)
PROXY_URL
=
"http://dnsproxy:3128"
export
HTTPS_PROXY
=
"
$PROXY_URL
"
git fetch
--all
git checkout
-b
Primtux3-migration Primtux3-migration
$DIR
/migrate_to_primtux4.sh
git reset
--hard
HEAD
git branch
-D
Primtux3-migration
git checkout
-b
Primtux3-migration origin/Primtux3-migration
if
[
$?
-eq
0
]
then
git pull
$DIR
/migrate_to_primtux4.sh
else
echo
"Fail to switch branches"
fi
upgrade-session.sh
View file @
668ad608
...
...
@@ -44,6 +44,11 @@ $DIR/upgrade_repository.sh
$DIR
/fix_xscreensaver.sh
$DIR
/fix_pcmanfm.sh
if
[
!
-e
/etc/primtux-version
]
then
$DIR
/migrate_to_primtux4.sh
fi
# Install missing libreoffice gtk
if
[
-z
"
`
dpkg
-l
|
grep
libreoffice-gtk
`
"
]
then
...
...
@@ -52,5 +57,5 @@ fi
if
[
$(
who
|
wc
-l
)
-eq
1
]
then
poweroff
echo
poweroff
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment