Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
Import registry records
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
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
develop
Import registry records
Commits
be3c3da6
Commit
be3c3da6
authored
Feb 28, 2022
by
Ilya Veselov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
little fix for prepare.sh & del hamming
parent
27f23b61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
16 deletions
+4
-16
dpkg/debian/postinst
dpkg/debian/postinst
+1
-12
dpkg/prepare.sh
dpkg/prepare.sh
+3
-4
No files found.
dpkg/debian/postinst
View file @
be3c3da6
...
...
@@ -5,19 +5,8 @@ set -e
.
/usr/share/debconf/confmodule
war_setting
()
{
local
war_path
=
"/opt/synergy/extensions/import"
local
deployments_path
=
"/opt/synergy/jboss/standalone/deployments"
local
version_file
=
"/opt/synergy/versions/arta-synergy-synergy"
local
version
=
$(
awk
'{print $2}'
$version_file
|
tr
-d
\(\)
)
case
$version
in
"hamming"
)
cp
$war_path
/hamming/import.war
$deployments_path
/
;;
"minsky"
)
cp
$war_path
/minsky/import.war
$deployments_path
/
;;
"master"
)
cp
$war_path
/minsky/import.war
$deployments_path
/
;;
"wilkinson"
)
cp
$war_path
/minsky/import.war
$deployments_path
/
;;
*
)
echo
"Your version is
$version
, import.war can not be set. Version must be hamming, minsky or wilkinson"
esac
chown
jboss:synergy
$deployments_path
/import.war
touch
$deployments_path
/import.war.dodeploy
touch
$deployments_path
/import.war.dodeploy
mkdir
/tmp/crm-import
chmod
777
-R
/tmp/crm-import
}
...
...
dpkg/prepare.sh
View file @
be3c3da6
...
...
@@ -40,9 +40,8 @@ PACKAGE_VERSION="${UPSTREAM_VERSION}-${REVISION_LETTER}1~${BUILD_NUMBER}"
rm
-rf
"
${
PKG_DIR
}
"
mkdir
-p
"
${
DSTDIR
}
"
#mkdir -p "${DSTDIR}/src/${DESTINATION}"
mkdir
-p
"
${
DSTDIR
}
/src/
${
SYNERGYPATH
}
/extensions/import/hamming"
mkdir
-p
"
${
DSTDIR
}
/src/
${
SYNERGYPATH
}
/extensions/import"
mkdir
-p
"
${
DSTDIR
}
/src/
${
DESTINATION
}
"
mkdir
-p
"
${
DSTDIR
}
/src/usr/share/doc/
${
PACKAGE_NAME
}
"
# For kibana plugins
#mkdir -p "${DSTDIR}/src/usr/share"
...
...
@@ -51,7 +50,7 @@ mkdir -p "${DSTDIR}/src/usr/share/doc/${PACKAGE_NAME}"
$TAR
--exclude-vcs
-c
-C
dpkg debian |
$TAR
xv
-C
"
$DSTDIR
"
$CP
-a
dpkg/Makefile
"
$DSTDIR
"
$CP
-a
"build/libs/import.war"
"
${
DSTDIR
}
/src/
${
SYNERGYPATH
}
/extensions/import
"
$CP
-a
"build/libs/import.war"
"
${
DSTDIR
}
/src/
${
DESTINATION
}
"
$CP
-a
"dpkg/debian/copyright"
"
${
DSTDIR
}
/src/usr/share/doc/
${
PACKAGE_NAME
}
"
$CP
-a
"dpkg/build.gradle"
"
${
DSTDIR
}
"
...
...
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