Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
f1afad6a
Commit
f1afad6a
authored
Nov 10, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getent used instead of search in passwd and group file
parent
7d621fd1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
177 additions
and
185 deletions
+177
-185
src/tools/pkg/deb/pwr/postinst
src/tools/pkg/deb/pwr/postinst
+13
-7
src/tools/pkg/deb/pwrrt/postinst
src/tools/pkg/deb/pwrrt/postinst
+70
-41
src/tools/pkg/deb/pwrsev/postinst
src/tools/pkg/deb/pwrsev/postinst
+94
-137
No files found.
src/tools/pkg/deb/pwr/postinst
View file @
f1afad6a
...
@@ -15,16 +15,22 @@ fi
...
@@ -15,16 +15,22 @@ fi
aroot
=
"/usr/pwrp/adm"
aroot
=
"/usr/pwrp/adm"
# Create group pwrp
if
getent group pwrp
>
/dev/null
;
then
if
!
grep
-q
"
\b
pwrp:"
/etc/group
;
then
echo
"-- group pwrp already exist"
echo
"-- Add group pwrp"
else
groupadd pwrp
if
groupadd pwrp
;
then
echo
"-- group pwrp added"
fi
fi
fi
if
!
grep
-q
"
\b
pwrp:"
/etc/passwd
;
then
if
getent passwd pwrp
>
/dev/null
;
then
echo
"-- Add user pwrp"
echo
"-- user pwrp already exist"
else
new_user
=
1
new_user
=
1
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-d
/home/pwrp pwrp
if
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-G
b55,b66,skiftel
-d
/home/pwrp pwrp
;
then
echo
"-- user pwrp added"
fi
if
[
!
-e
/home/pwrp
]
;
then
if
[
!
-e
/home/pwrp
]
;
then
mkdir
/home/pwrp
mkdir
/home/pwrp
fi
fi
...
...
src/tools/pkg/deb/pwrrt/postinst
View file @
f1afad6a
...
@@ -17,52 +17,77 @@ aroot="/usr/pwrp/adm"
...
@@ -17,52 +17,77 @@ aroot="/usr/pwrp/adm"
# Create users...
# Create users...
new_user
=
0
new_user
=
0
if
!
grep
-q
"
\b
pwrp:"
/etc/group
;
then
echo
"-- Add group pwrp"
if
getent group pwrp
>
/dev/null
;
then
groupadd pwrp
echo
"-- group pwrp already exist"
else
if
groupadd pwrp
;
then
echo
"-- group pwrp added"
fi
fi
fi
if
!
grep
-q
"
\b
b55:"
/etc/group
;
then
echo
"-- Add group b55"
if
getent group b55
>
/dev/null
;
then
groupadd b55
echo
"-- group b55 already exist"
else
if
groupadd b55
;
then
echo
"-- group b55 added"
fi
fi
fi
if
!
grep
-q
"
\b
b66:"
/etc/group
;
then
echo
"-- Add group b66"
if
getent group b66
>
/dev/null
;
then
groupadd b66
echo
"-- group b66 already exist"
else
if
groupadd b66
;
then
echo
"-- group b66 added"
fi
fi
fi
if
!
grep
-q
"
\b
skiftel:"
/etc/group
;
then
echo
"-- Add group skiftel"
if
getent group skiftel
>
/dev/null
;
then
groupadd skiftel
echo
"-- group skiftel already exist"
else
if
groupadd skiftel
;
then
echo
"-- group skiftel added"
fi
fi
fi
if
!
grep
-q
"
\b
pwrp:"
/etc/passwd
;
then
if
getent passwd pwrp
>
/dev/null
;
then
echo
"-- Add user pwrp"
echo
"-- user pwrp already exist"
else
new_user
=
1
new_user
=
1
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-G
b55,b66,skiftel
-d
/home/pwrp pwrp
if
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-G
b55,b66,skiftel
-d
/home/pwrp pwrp
;
then
echo
"-- user pwrp added"
fi
if
[
!
-e
/home/pwrp
]
;
then
if
[
!
-e
/home/pwrp
]
;
then
mkdir
/home/pwrp
mkdir
/home/pwrp
cp
/usr/pwrrt/cnf/user/.bashrc /home/pwrp
cp
/usr/pwrrt/cnf/user/.bash_profile /home/pwrp
cp
/usr/pwrrt/cnf/user/.mwmrc /home/pwrp
cp
/usr/pwrrt/cnf/user/.rtt_start /home/pwrp
chmod
a+x /home/pwrp/.rtt_start
cp
/usr/pwrrt/cnf/user/.xtt_start /home/pwrp
chmod
a+x /home/pwrp/.xtt_start
cp
/usr/pwrrt/cnf/user/.xsession /home/pwrp
chown
-R
pwrp /home/pwrp
chgrp
-R
pwrp /home/pwrp
fi
fi
cp
/usr/pwrrt/cnf/user/.bashrc /home/pwrp
cp
/usr/pwrrt/cnf/user/.bash_profile /home/pwrp
cp
/usr/pwrrt/cnf/user/.mwmrc /home/pwrp
cp
/usr/pwrrt/cnf/user/.rtt_start /home/pwrp
chmod
a+x /home/pwrp/.rtt_start
cp
/usr/pwrrt/cnf/user/.xtt_start /home/pwrp
chmod
a+x /home/pwrp/.xtt_start
cp
/usr/pwrrt/cnf/user/.xsession /home/pwrp
chown
-R
pwrp /home/pwrp
chgrp
-R
pwrp /home/pwrp
# Add to group dialout
# Add to group dialout
if
g
rep
-q
"
\b
dialout:"
/etc/group
;
then
if
g
etent group dialout
>
/dev/null
;
then
usermod
-a
-G
dialout pwrp
usermod
-a
-G
dialout pwrp
fi
fi
fi
fi
if
!
grep
-q
"
\b
skiftel:"
/etc/passwd
;
then
if
getent passwd skiftel
>
/dev/null
;
then
echo
"-- Add user skiftel"
echo
"-- user skiftel already exist"
else
new_user
=
1
new_user
=
1
useradd
-s
/bin/bash
-p
aa6NzxS/aBgP6
-g
skiftel
-G
pwrp
-d
/home/skiftel skiftel
if
useradd
-s
/bin/bash
-p
aa6NzxS/aBgP6
-g
skiftel
-G
pwrp
-d
/home/skiftel skiftel
;
then
echo
"-- user skiftel added"
fi
if
[
!
-e
/home/skiftel
]
;
then
if
[
!
-e
/home/skiftel
]
;
then
mkdir
/home/skiftel
mkdir
/home/skiftel
cp
/usr/pwrrt/cnf/user/.bashrc /home/skiftel
cp
/usr/pwrrt/cnf/user/.bashrc /home/skiftel
...
@@ -79,17 +104,19 @@ if ! grep -q "\bskiftel:" /etc/passwd; then
...
@@ -79,17 +104,19 @@ if ! grep -q "\bskiftel:" /etc/passwd; then
fi
fi
fi
fi
if
!
grep
-q
"
\b
b55:"
/etc/passwd
;
then
if
getent passwd b55
>
/dev/null
;
then
echo
"-- Add user b55"
new_user
=
1
new_user
=
1
# Check if group audio exist
# Check if group audio exist
if
g
rep
-q
"
\b
audio:"
/etc/group
;
then
if
g
etent group audio
>
/dev/null
;
then
groups
=
"pwrp,audio"
groups
=
"pwrp,audio"
else
else
groups
=
"pwrp"
groups
=
"pwrp"
fi
fi
useradd
-s
/bin/bash
-p
aaQPClsglxJP6
-g
b55
-G
$groups
-d
/home/b55 b55
if
useradd
-s
/bin/bash
-p
aaQPClsglxJP6
-g
b55
-G
$groups
-d
/home/b55 b55
;
then
echo
"-- user b55 added"
fi
if
[
!
-e
/home/b55
]
;
then
if
[
!
-e
/home/b55
]
;
then
mkdir
/home/b55
mkdir
/home/b55
cp
/usr/pwrrt/cnf/op/.bashrc /home/b55
cp
/usr/pwrrt/cnf/op/.bashrc /home/b55
...
@@ -107,17 +134,19 @@ if ! grep -q "\bb55:" /etc/passwd; then
...
@@ -107,17 +134,19 @@ if ! grep -q "\bb55:" /etc/passwd; then
fi
fi
fi
fi
if
!
grep
-q
"
\b
b66:"
/etc/passwd
;
then
if
getent passwd b66
>
/dev/null
;
then
echo
"-- Add user b66"
new_user
=
1
new_user
=
1
# Check if group audio exist
# Check if group audio exist
if
g
rep
-q
"
\b
audio:"
/etc/group
;
then
if
g
etent group audio
>
/dev/null
;
then
audio
=
"-G
audio"
groups
=
"pwrp,
audio"
else
else
audio
=
""
groups
=
"pwrp"
fi
if
useradd
-s
/bin/bash
-p
aae.nHgHbfUpw
-g
b66
-G
$groups
-d
/home/b66 b66
;
then
echo
"-- user b66 added"
fi
fi
useradd
-s
/bin/bash
-p
aae.nHgHbfUpw
-g
b66
-G
$groups
-d
/home/b66 b66
if
[
!
-e
/home/b66
]
;
then
if
[
!
-e
/home/b66
]
;
then
mkdir
/home/b66
mkdir
/home/b66
cp
/usr/pwrrt/cnf/op/.bashrc /home/b66
cp
/usr/pwrrt/cnf/op/.bashrc /home/b66
...
@@ -145,7 +174,7 @@ chmod u+s /usr/pwrrt/exe/rt_bck
...
@@ -145,7 +174,7 @@ chmod u+s /usr/pwrrt/exe/rt_bck
chmod
u+s /usr/pwrrt/exe/rt_gdhget
chmod
u+s /usr/pwrrt/exe/rt_gdhget
chown
root /usr/pwrrt/exe/rs_remote_alcm
chown
root /usr/pwrrt/exe/rs_remote_alcm
chmod
u+s /usr/pwrrt/exe/rs_remote_alcm
chmod
u+s /usr/pwrrt/exe/rs_remote_alcm
if
g
rep
-q
"
\b
dialout:"
/etc/group
;
then
if
g
etent group dialout
>
/dev/null
;
then
chgrp
dialout /usr/pwrrt/exe/rs_remote_serial
chgrp
dialout /usr/pwrrt/exe/rs_remote_serial
chmod
ug+s /usr/pwrrt/exe/rs_remote_serial
chmod
ug+s /usr/pwrrt/exe/rs_remote_serial
chgrp
dialout /usr/pwrrt/exe/rs_remote_3964r
chgrp
dialout /usr/pwrrt/exe/rs_remote_3964r
...
...
src/tools/pkg/deb/pwrsev/postinst
View file @
f1afad6a
...
@@ -17,89 +17,117 @@ aroot="/usr/pwrp/adm"
...
@@ -17,89 +17,117 @@ aroot="/usr/pwrp/adm"
# Create users...
# Create users...
new_user
=
0
new_user
=
0
if
!
grep
-q
"
\b
pwrp:"
/etc/group
;
then
if
getent group pwrp
>
/dev/null
;
then
echo
"-- Add group pwrp"
echo
"-- group pwrp already exist"
groupadd pwrp
else
if
groupadd pwrp
;
then
echo
"-- group pwrp added"
fi
fi
fi
if
!
grep
-q
"
\b
b55:"
/etc/group
;
then
echo
"-- Add group b55"
if
getent group b55
>
/dev/null
;
then
groupadd b55
echo
"-- group b55 already exist"
else
if
groupadd b55
;
then
echo
"-- group b55 added"
fi
fi
fi
if
!
grep
-q
"
\b
b66:"
/etc/group
;
then
echo
"-- Add group b66"
if
getent group b66
>
/dev/null
;
then
groupadd b66
echo
"-- group b66 already exist"
else
if
groupadd b66
;
then
echo
"-- group b66 added"
fi
fi
fi
if
!
grep
-q
"
\b
skiftel:"
/etc/group
;
then
echo
"-- Add group skiftel"
if
getent group skiftel
>
/dev/null
;
then
groupadd skiftel
echo
"-- group skiftel already exist"
else
if
groupadd skiftel
;
then
echo
"-- group skiftel added"
fi
fi
fi
if
!
grep
-q
"
\b
pwrp:"
/etc/passwd
;
then
echo
"-- Add user pwrp"
if
getent passwd pwrp
>
/dev/null
;
then
echo
"-- user pwrp already exist"
else
new_user
=
1
new_user
=
1
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-G
b55,b66,skiftel
-d
/home/pwrp pwrp
if
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-G
b55,b66,skiftel
-d
/home/pwrp pwrp
;
then
echo
"-- user pwrp added"
fi
if
[
!
-e
/home/pwrp
]
;
then
if
[
!
-e
/home/pwrp
]
;
then
mkdir
/home/pwrp
mkdir
/home/pwrp
cp
/usr/pwrsev/cnf/user/.bashrc /home/pwrp
cp
/usr/pwrsev/cnf/user/.bash_profile /home/pwrp
cp
/usr/pwrsev/cnf/user/.mwmrc /home/pwrp
cp
/usr/pwrsev/cnf/user/.rtt_start /home/pwrp
chmod
a+x /home/pwrp/.rtt_start
cp
/usr/pwrsev/cnf/user/.xtt_start /home/pwrp
chmod
a+x /home/pwrp/.xtt_start
cp
/usr/pwrsev/cnf/user/.xsession /home/pwrp
chown
-R
pwrp /home/pwrp
chgrp
-R
pwrp /home/pwrp
fi
fi
cp
/usr/pwrrt/cnf/user/.bashrc /home/pwrp
cp
/usr/pwrrt/cnf/user/.bash_profile /home/pwrp
cp
/usr/pwrrt/cnf/user/.mwmrc /home/pwrp
cp
/usr/pwrrt/cnf/user/.rtt_start /home/pwrp
chmod
a+x /home/pwrp/.rtt_start
cp
/usr/pwrrt/cnf/user/.xtt_start /home/pwrp
chmod
a+x /home/pwrp/.xtt_start
cp
/usr/pwrrt/cnf/user/.xsession /home/pwrp
chown
-R
pwrp /home/pwrp
chgrp
-R
pwrp /home/pwrp
# Add to group dialout
# Add to group dialout
if
g
rep
-q
"
\b
dialout:"
/etc/group
;
then
if
g
etent group dialout
>
/dev/null
;
then
usermod
-a
-G
dialout pwrp
usermod
-a
-G
dialout pwrp
fi
fi
fi
fi
if
!
grep
-q
"
\b
skiftel:"
/etc/passwd
;
then
if
getent passwd skiftel
>
/dev/null
;
then
echo
"-- Add user skiftel"
echo
"-- user skiftel already exist"
else
new_user
=
1
new_user
=
1
useradd
-s
/bin/bash
-p
aa6NzxS/aBgP6
-g
skiftel
-G
pwrp
-d
/home/skiftel skiftel
if
useradd
-s
/bin/bash
-p
aa6NzxS/aBgP6
-g
skiftel
-G
pwrp
-d
/home/skiftel skiftel
;
then
echo
"-- user skiftel added"
fi
if
[
!
-e
/home/skiftel
]
;
then
if
[
!
-e
/home/skiftel
]
;
then
mkdir
/home/skiftel
mkdir
/home/skiftel
cp
/usr/pwr
rt
/cnf/user/.bashrc /home/skiftel
cp
/usr/pwr
sev
/cnf/user/.bashrc /home/skiftel
cp
/usr/pwr
rt
/cnf/user/.bash_profile /home/skiftel
cp
/usr/pwr
sev
/cnf/user/.bash_profile /home/skiftel
cp
/usr/pwr
rt
/cnf/user/.mwmrc /home/skiftel
cp
/usr/pwr
sev
/cnf/user/.mwmrc /home/skiftel
cp
/usr/pwr
rt
/cnf/user/.rtt_start /home/skiftel
cp
/usr/pwr
sev
/cnf/user/.rtt_start /home/skiftel
chmod
a+x /home/skiftel/.rtt_start
chmod
a+x /home/skiftel/.rtt_start
cp
/usr/pwr
rt
/cnf/user/.xtt_start /home/skiftel
cp
/usr/pwr
sev
/cnf/user/.xtt_start /home/skiftel
chmod
a+x /home/skiftel/.xtt_start
chmod
a+x /home/skiftel/.xtt_start
cp
/usr/pwr
rt
/cnf/user/.xsession /home/skiftel
cp
/usr/pwr
sev
/cnf/user/.xsession /home/skiftel
chown
-R
pwrp /home/skiftel
chown
-R
pwrp /home/skiftel
chgrp
-R
pwrp /home/skiftel
chgrp
-R
pwrp /home/skiftel
fi
fi
fi
fi
if
!
grep
-q
"
\b
b55:"
/etc/passwd
;
then
if
getent passwd b55
>
/dev/null
;
then
echo
"-- Add user b55"
new_user
=
1
new_user
=
1
# Check if group audio exist
# Check if group audio exist
if
g
rep
-q
"
\b
audio:"
/etc/group
;
then
if
g
etent group audio
>
/dev/null
;
then
groups
=
"pwrp,audio"
groups
=
"pwrp,audio"
else
else
groups
=
"pwrp"
groups
=
"pwrp"
fi
fi
useradd
-s
/bin/bash
-p
aaQPClsglxJP6
-g
b55
-G
$groups
-d
/home/b55 b55
if
useradd
-s
/bin/bash
-p
aaQPClsglxJP6
-g
b55
-G
$groups
-d
/home/b55 b55
;
then
echo
"-- user b55 added"
fi
if
[
!
-e
/home/b55
]
;
then
if
[
!
-e
/home/b55
]
;
then
mkdir
/home/b55
mkdir
/home/b55
cp
/usr/pwr
rt
/cnf/op/.bashrc /home/b55
cp
/usr/pwr
sev
/cnf/op/.bashrc /home/b55
cp
/usr/pwr
rt
/cnf/op/.bash_profile /home/b55
cp
/usr/pwr
sev
/cnf/op/.bash_profile /home/b55
cp
/usr/pwr
rt
/cnf/op/.mwmrc /home/b55
cp
/usr/pwr
sev
/cnf/op/.mwmrc /home/b55
cp
/usr/pwr
rt
/cnf/op/.rtt_start /home/b55
cp
/usr/pwr
sev
/cnf/op/.rtt_start /home/b55
chmod
a+x /home/b55/.rtt_start
chmod
a+x /home/b55/.rtt_start
cp
/usr/pwr
rt
/cnf/op/.xtt_start /home/b55
cp
/usr/pwr
sev
/cnf/op/.xtt_start /home/b55
chmod
a+x /home/b55/.xtt_start
chmod
a+x /home/b55/.xtt_start
cp
/usr/pwr
rt
/cnf/op/.xsession /home/b55
cp
/usr/pwr
sev
/cnf/op/.xsession /home/b55
chown
-R
b55 /home/b55
chown
-R
b55 /home/b55
chgrp
-R
pwrp /home/b55
chgrp
-R
pwrp /home/b55
...
@@ -107,27 +135,29 @@ if ! grep -q "\bb55:" /etc/passwd; then
...
@@ -107,27 +135,29 @@ if ! grep -q "\bb55:" /etc/passwd; then
fi
fi
fi
fi
if
!
grep
-q
"
\b
b66:"
/etc/passwd
;
then
if
getent passwd b66
>
/dev/null
;
then
echo
"-- Add user b66"
new_user
=
1
new_user
=
1
# Check if group audio exist
# Check if group audio exist
if
g
rep
-q
"
\b
audio:"
/etc/group
;
then
if
g
etent group audio
>
/dev/null
;
then
audio
=
"-G
audio"
groups
=
"pwrp,
audio"
else
else
audio
=
""
groups
=
"pwrp"
fi
if
useradd
-s
/bin/bash
-p
aae.nHgHbfUpw
-g
b66
-G
$groups
-d
/home/b66 b66
;
then
echo
"-- user b66 added"
fi
fi
useradd
-s
/bin/bash
-p
aae.nHgHbfUpw
-g
b66
-G
$groups
-d
/home/b66 b66
if
[
!
-e
/home/b66
]
;
then
if
[
!
-e
/home/b66
]
;
then
mkdir
/home/b66
mkdir
/home/b66
cp
/usr/pwr
rt
/cnf/op/.bashrc /home/b66
cp
/usr/pwr
sev
/cnf/op/.bashrc /home/b66
cp
/usr/pwr
rt
/cnf/op/.bash_profile /home/b66
cp
/usr/pwr
sev
/cnf/op/.bash_profile /home/b66
cp
/usr/pwr
rt
/cnf/op/.mwmrc /home/b66
cp
/usr/pwr
sev
/cnf/op/.mwmrc /home/b66
cp
/usr/pwr
rt
/cnf/op/.rtt_start /home/b66
cp
/usr/pwr
sev
/cnf/op/.rtt_start /home/b66
chmod
a+x /home/b66/.rtt_start
chmod
a+x /home/b66/.rtt_start
cp
/usr/pwr
rt
/cnf/op/.xtt_start /home/b66
cp
/usr/pwr
sev
/cnf/op/.xtt_start /home/b66
chmod
a+x /home/b66/.xtt_start
chmod
a+x /home/b66/.xtt_start
cp
/usr/pwr
rt
/cnf/op/.xsession /home/b66
cp
/usr/pwr
sev
/cnf/op/.xsession /home/b66
chown
-R
b66 /home/b66
chown
-R
b66 /home/b66
chgrp
-R
pwrp /home/b66
chgrp
-R
pwrp /home/b66
...
@@ -135,17 +165,17 @@ if ! grep -q "\bb66:" /etc/passwd; then
...
@@ -135,17 +165,17 @@ if ! grep -q "\bb66:" /etc/passwd; then
fi
fi
fi
fi
chown
-R
pwrp /usr/pwr
rt
chown
-R
pwrp /usr/pwr
sev
chgrp
-R
pwrp /usr/pwr
rt
chgrp
-R
pwrp /usr/pwr
sev
chmod
u+s /usr/pwr
rt
/exe/sev_ini
chmod
u+s /usr/pwr
sev
/exe/sev_ini
chown
root /usr/pwr
rt
/exe/rt_prio
chown
root /usr/pwr
sev
/exe/rt_prio
chmod
u+s /usr/pwr
rt
/exe/rt_prio
chmod
u+s /usr/pwr
sev
/exe/rt_prio
# Copy configuration files
# Copy configuration files
new_cnf
=
0
new_cnf
=
0
if
[
!
-e
/etc/proview.cnf
]
;
then
if
[
!
-e
/etc/proview.cnf
]
;
then
cp
/usr/pwr
rt
/cnf/proview.cnf /etc
cp
/usr/pwr
sev
/cnf/proview.cnf /etc
new_cnf
=
1
new_cnf
=
1
fi
fi
...
@@ -196,79 +226,6 @@ if [ ! -e $aroot/db ]; then
...
@@ -196,79 +226,6 @@ if [ ! -e $aroot/db ]; then
chown
-R
pwrp
$aroot
chown
-R
pwrp
$aroot
fi
fi
# Copy jar-files to web directory
if
[
-e
/etc/proview.cnf
]
;
then
set
+e
web_dir
=
`
eval cat
/etc/proview.cnf |
grep
"
\\
bwebDirectory
\\
b"
|
awk
'{print $2}'
`
set
-e
if
[
-e
"
$web_dir
"
]
;
then
cp
/usr/pwrrt/lib/pwr_rt_client.jar
$web_dir
chown
pwrp
$web_dir
/pwr_rt_client.jar
cp
/usr/pwrrt/lib/pwr_jop.jar
$web_dir
chown
pwrp
$web_dir
/pwr_jop.jar
cp
/usr/pwrrt/lib/pwr_jopc.jar
$web_dir
chown
pwrp
$web_dir
/pwr_jopc.jar
fi
fi
#
# Add proview web directories to Apache
#
if
[
-e
/etc/apache2/apache2.conf
]
;
then
if
!
egrep
-q
"Alias[ ]+/pwrp_web/"
/etc/apache2/apache2.conf
;
then
cat
>>
/etc/apache2/apache2.conf
<<-
EOF
#
# Proview alias pwrp_web, added by Proview installation
#
Alias /pwrp_web/ /pwrp/common/web/
<Directory /pwrp/common/web>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
EOF
fi
if
!
egrep
-q
"Alias[ ]+/pwrp_log/"
/etc/apache2/apache2.conf
;
then
cat
>>
/etc/apache2/apache2.conf
<<-
EOF
#
# Proview alias pwrp_log, added by Proview installation
#
Alias /pwrp_log/ /pwrp/common/log/
<Directory /pwrp/common/log>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
EOF
fi
if
!
egrep
-q
"Alias[ ]+/pwr_doc/"
/etc/apache2/apache2.conf
;
then
cat
>>
/etc/apache2/apache2.conf
<<-
EOF
#
# Proview alias pwr_doc, added by Proview installation
#
Alias /pwr_doc/ /usr/pwrrt/doc/
<Directory /usr/pwrrt/doc>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
EOF
fi
fi
#
#
changes
=
0
changes
=
0
...
...
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