Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9444ffc9
Kaydet (Commit)
9444ffc9
authored
Haz 15, 2015
tarafından
Katarina Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove bash-ism, allow also --bundled option for root
Change-Id: I34511c7947ff78654a34a3d2bd21754b6d004420
üst
4ea281a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
unopkg.sh
desktop/scripts/unopkg.sh
+15
-12
No files found.
desktop/scripts/unopkg.sh
Dosyayı görüntüle @
9444ffc9
...
...
@@ -49,28 +49,31 @@ AIX)
;;
esac
HELP_MODE
=
0
SHARED_MODE
=
0
#collect all bootstrap variables specified on the command line
#so that they can be passed as arguments to javaldx later on
help_mode
=
0
isnotuser
=
0
for
arg
in
$@
do
case
"
$arg
"
in
#collect all bootstrap variables specified on the command line
#so that they can be passed as arguments to javaldx later on
-env
:
*
)
BOOTSTRAPVARS
=
$BOOTSTRAPVARS
" ""
$arg
"
;;
# make sure shared extensions will be readable by all users
--shared
)
umask
0022
SHARED_MODE
=
1
isnotuser
=
1
;;
# make sure shared extensions will be readable by all users
-h
|
--help
)
HELP_MODE
=
1
;;
--bundled
)
isnotuser
=
1
;;
-h
|
--help
)
help_mode
=
1
;;
esac
done
# we don't really want root to run unopkg without --shared option
if
[
"
$EUID
"
-eq
0
]
;
then
# but we might at least let him read help
if
[
$
SHARED_MODE
-eq
0
]
&&
[
$HELP_MODE
-eq
0
]
;
then
echo
"Cannot run '
${
0
}
$*
' as root
(did you forget --shared option?)
"
# we don't really want root to run unopkg without --shared o
r --bundled o
ption
# but we might at least let him read help
if
[
"
$(
id
-u
)
"
-eq
"0"
]
;
then
if
[
$
isnotuser
-eq
0
]
&&
[
$help_mode
-eq
0
]
;
then
echo
"Cannot run '
${
0
}
$*
' as root
without --shared or --bundled option.
"
exit
1
fi
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