Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-project
Commits
d11f37fc
Commit
d11f37fc
authored
4 years ago
by
Igor Stegarescu
Browse files
Options
Downloads
Patches
Plain Diff
Packaging: deploy on seconde server ovh(seconde project)
Change-Id: I7a3ffd70b3efaad861ccd5170c7d1d6214fde6cb
parent
69dd5a09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/deploy-packages.sh
+18
-7
18 additions, 7 deletions
scripts/deploy-packages.sh
with
18 additions
and
7 deletions
scripts/deploy-packages.sh
+
18
−
7
View file @
d11f37fc
...
...
@@ -41,7 +41,6 @@ function package_deb()
echo
"#########################"
DISTRIBUTION_REPOSITOIRY_FOLDER
=
$(
realpath
repositories
)
/
${
DISTRIBUTION
}
rm
-rf
${
DISTRIBUTION_REPOSITOIRY_FOLDER
}
mkdir
-p
${
DISTRIBUTION_REPOSITOIRY_FOLDER
}
/conf
# Distributions file
...
...
@@ -123,7 +122,6 @@ function package_rpm()
echo
"#########################"
DISTRIBUTION_REPOSITOIRY_FOLDER
=
$(
realpath
repositories
)
/
${
DISTRIBUTION
}
rm
-rf
${
DISTRIBUTION_REPOSITOIRY_FOLDER
}
mkdir
-p
${
DISTRIBUTION_REPOSITOIRY_FOLDER
}
# .repo file
...
...
@@ -208,9 +206,6 @@ function deploy()
echo
"#####################################"
rsync
--archive
--recursive
--verbose
--delete
${
DISTRIBUTION_MANUAL_DOWNLOAD_FOLDER
}
${
REMOTE_MANUAL_DOWNLOAD_LOCATION
}
# remove deployed files
rm
-rf
manual-download
rm
-rf
repositories
}
...
...
@@ -231,6 +226,13 @@ function package()
fi
}
function
remove-deployed-files
()
{
# remove deployed files
rm
-rf
manual-download
rm
-rf
repositories
rm
-rf
${
DISTRIBUTION_REPOSITOIRY_FOLDER
}
}
for
i
in
"
$@
"
do
...
...
@@ -262,5 +264,14 @@ case $i in
esac
done
package
deploy
if
[
-z
"
${
KEYID
}
"
]
;
then
DISTRIBUTION_REPOSITOIRY_FOLDER
=
$(
realpath
repositories
)
/
${
DISTRIBUTION
}
DISTRIBUTION_MANUAL_DOWNLOAD_FOLDER
=
$(
realpath
manual-download
)
/
${
DISTRIBUTION
}
deploy
remove-deployed-files
else
package
deploy
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment