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
80b63b85
Commit
80b63b85
authored
Jun 26, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
authorized_keys file included in distribution package
parent
d62c91d4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
35 deletions
+29
-35
wb/lib/wb/src/wb_lfu.cpp
wb/lib/wb/src/wb_lfu.cpp
+19
-16
wb/lib/wb/src/wb_lfu.h
wb/lib/wb/src/wb_lfu.h
+1
-17
wb/lib/wb/src/wb_pkg.cpp
wb/lib/wb/src/wb_pkg.cpp
+9
-2
No files found.
wb/lib/wb/src/wb_lfu.cpp
View file @
80b63b85
/*
* Proview $Id: wb_lfu.cpp,v 1.1
7 2008-06-25 07:56:00
claes Exp $
* Proview $Id: wb_lfu.cpp,v 1.1
8 2008-06-26 13:20:41
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -1996,7 +1996,7 @@ pwr_tStatus lfu_SaveDirectoryVolume(
switch
(
cid
)
{
case
pwr_cClass_Distribute
:
{
lfu_mDistrComponents
*
components_ptr
;
pwr_mDistrComponentMask
*
components_ptr
;
sts
=
ldh_ObjidToName
(
ldhses
,
applobjid
,
ldh_eName_Object
,
appl_name
,
sizeof
(
appl_name
),
&
size
);
...
...
@@ -2007,45 +2007,48 @@ pwr_tStatus lfu_SaveDirectoryVolume(
"Components"
,
(
char
**
)
&
components_ptr
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
*
components_ptr
&
lfu_mDistrComponents
_LoadFiles
&&
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_LoadFiles
&&
!
(
distr_options
&
lfu_mDistrOpt_NoRootVolume
))
{
fprintf
(
file
,
"load %s
\n
"
,
nodename_ptr
);
}
if
(
*
components_ptr
&
lfu_mDistrComponents
_UserDatabase
)
fprintf
(
file
,
"appl %s W $pwrp_src/%s/pwr_user
.dat:$pwra_db/pwr_user.dat $pwra_db/pwr_user
.dat
\n
"
,
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_UserDatabase
)
fprintf
(
file
,
"appl %s W $pwrp_src/%s/pwr_user
2.dat:$pwra_db/pwr_user2.dat $pwra_db/pwr_user2
.dat
\n
"
,
nodename_ptr
,
nodename_ptr
);
if
(
*
components_ptr
&
lfu_mDistrComponents
_ApplFile
)
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_ApplFile
)
fprintf
(
file
,
"appl %s W "
load_cNameAppl
"
\n
"
,
nodename_ptr
,
"$pwrp_load/"
,
nodename_ptr
,
*
bus_number_ptr
);
if
(
*
components_ptr
&
lfu_mDistrComponents
_PwrpAliasFile
)
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_PwrpAliasFile
)
fprintf
(
file
,
"appl %s W $pwrp_load/pwrp_alias.dat $pwrp_load/pwrp_alias.dat
\n
"
,
nodename_ptr
);
if
(
*
components_ptr
&
lfu_mDistrComponents
_IncludeFiles
)
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_IncludeFiles
)
fprintf
(
file
,
"appl %s W $pwrp_inc/*.h
\n
"
,
nodename_ptr
);
if
(
*
components_ptr
&
lfu_mDistrComponents
_GraphFiles
)
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_GraphFiles
)
fprintf
(
file
,
"appl %s W $pwrp_exe/*.pwg
\n
"
,
nodename_ptr
);
if
(
*
components_ptr
&
lfu_mDistrComponents
_XttHelpFile
)
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_XttHelpFile
)
fprintf
(
file
,
"appl %s W $pwrp_src/%s/xtt_help.dat:$pwrp_exe/xtt_help.dat $pwrp_exe/xtt_help.dat
\n
"
,
nodename_ptr
,
nodename_ptr
);
if
(
*
components_ptr
&
lfu_mDistrComponents
_XttResourceFile
)
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_XttResourceFile
)
fprintf
(
file
,
"appl %s W $pwrp_src/%s/Rt_xtt:$pwrp_pop/Rt_xtt /home/b55/Rt_xtt
\n
"
,
nodename_ptr
,
nodename_ptr
);
if
(
*
components_ptr
&
lfu_mDistrComponents
_XttSetupFile
)
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_XttSetupFile
)
fprintf
(
file
,
"appl %s W $pwrp_src/%s/xtt_setup.rtt_com:$pwrp_pop/xtt_setup.rtt_com /home/b55/xtt_setup.rtt_com
\n
"
,
nodename_ptr
,
nodename_ptr
);
if
(
*
components_ptr
&
lfu_mDistrComponents
_FlowFiles
)
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_FlowFiles
)
fprintf
(
file
,
"appl %s W $pwrp_load/*.flw
\n
"
,
nodename_ptr
);
if
(
*
components_ptr
&
lfu_mDistrComponents
_RHostsFile
)
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_RHostsFile
)
fprintf
(
file
,
"appl %s W $pwrp_src/%s/.rhosts:$pwra_db/.rhosts /home/pwrp/.rhosts
\n
"
,
nodename_ptr
,
nodename_ptr
);
if
(
*
components_ptr
&
lfu_mDistrComponents_WebFiles
)
{
if
(
*
components_ptr
&
pwr_mDistrComponentMask_AuthorizedKeysFile
)
fprintf
(
file
,
"appl %s W $pwrp_src/%s/authorized_keys:$pwra_db/authorized_keys /home/pwrp/.ssh/authorized_keys
\n
"
,
nodename_ptr
,
nodename_ptr
);
if
(
*
components_ptr
&
pwr_mDistrComponentMask_WebFiles
)
{
fprintf
(
file
,
"appl %s W $pwrp_web/*.html
\n
"
,
nodename_ptr
);
fprintf
(
file
,
"appl %s W $pwrp_web/*.jar
\n
"
,
nodename_ptr
);
fprintf
(
file
,
"appl %s S $pwrp_web/*.gif
\n
"
,
nodename_ptr
);
fprintf
(
file
,
"appl %s S $pwrp_web/*.jpg
\n
"
,
nodename_ptr
);
fprintf
(
file
,
"appl %s S $pwrp_web/*.pdf
\n
"
,
nodename_ptr
);
}
if
(
*
components_ptr
&
lfu_mDistrComponents
_PwrpStop
)
if
(
*
components_ptr
&
pwr_mDistrComponentMask
_PwrpStop
)
fprintf
(
file
,
"appl %s W $pwrp_src/%s/pwrp_stop.sh:$pwrp_exe/pwrp_stop.sh $pwrp_exe/pwrp_stop.sh
\n
"
,
nodename_ptr
,
nodename_ptr
);
...
...
wb/lib/wb/src/wb_lfu.h
View file @
80b63b85
/*
* Proview $Id: wb_lfu.h,v 1.1
1 2008-06-25 07:56:04
claes Exp $
* Proview $Id: wb_lfu.h,v 1.1
2 2008-06-26 13:20:41
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -37,22 +37,6 @@ typedef enum {
lfu_mDistrOpt_RSH
=
1
<<
1
}
lfu_mDistrOpt
;
typedef
enum
{
lfu_mDistrComponents_UserDatabase
=
1
<<
0
,
lfu_mDistrComponents_LoadFiles
=
1
<<
1
,
lfu_mDistrComponents_ApplFile
=
1
<<
2
,
lfu_mDistrComponents_PwrpAliasFile
=
1
<<
3
,
lfu_mDistrComponents_IncludeFiles
=
1
<<
4
,
lfu_mDistrComponents_GraphFiles
=
1
<<
5
,
lfu_mDistrComponents_XttHelpFile
=
1
<<
6
,
lfu_mDistrComponents_XttResourceFile
=
1
<<
7
,
lfu_mDistrComponents_XttSetupFile
=
1
<<
8
,
lfu_mDistrComponents_FlowFiles
=
1
<<
9
,
lfu_mDistrComponents_RHostsFile
=
1
<<
10
,
lfu_mDistrComponents_WebFiles
=
1
<<
11
,
lfu_mDistrComponents_PwrpStop
=
1
<<
12
}
lfu_mDistrComponents
;
typedef
enum
{
lfu_eAccessType_StdLgi
=
0
,
lfu_eAccessType_Proxy
=
1
,
...
...
wb/lib/wb/src/wb_pkg.cpp
View file @
80b63b85
/*
* Proview $Id: wb_pkg.cpp,v 1.1
7 2008-06-25 07:56:13
claes Exp $
* Proview $Id: wb_pkg.cpp,v 1.1
8 2008-06-26 13:20:41
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -460,7 +460,10 @@ void pkg_node::fetchFiles( bool distribute)
"cd /tmp"
<<
endl
<<
"echo
\"
-- Unpack package "
<<
pkg_name
<<
"
\"
"
<<
endl
<<
"tar -xzf /home/pwrp/"
<<
pkg_name
<<
endl
<<
"echo
\"
-- Move files to target directories
\"
"
<<
endl
;
"echo
\"
-- Move files to target directories
\"
"
<<
endl
<<
"if [ ! -e /home/pwrp/.ssh ]; then"
<<
endl
<<
" mkdir /home/pwrp/.ssh"
<<
endl
<<
"fi"
<<
endl
;
for
(
int
i
=
0
;
i
<
(
int
)
m_filelist
.
size
();
i
++
)
ofu
<<
...
...
@@ -487,6 +490,10 @@ void pkg_node::fetchFiles( bool distribute)
" sudo chown pwrp /home/pwrp/.rhosts"
<<
endl
<<
" sudo chmod g-w /home/pwrp/.rhosts"
<<
endl
<<
" fi"
<<
endl
<<
" if [ -e /home/pwrp/.ssh/authorized_keys ]; then"
<<
endl
<<
" sudo chown pwrp /home/pwrp/.ssh/authorized_keys"
<<
endl
<<
" sudo chmod g-w /home/pwrp/.ssh/authorized_keys"
<<
endl
<<
" fi"
<<
endl
<<
"fi"
<<
endl
;
ofu
.
close
();
...
...
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