mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
switch to rsync usage
This commit is contained in:
parent
bdce99d701
commit
a97d836bf1
2 changed files with 8 additions and 6 deletions
|
@ -48,15 +48,15 @@ _update_pacman_chroot() {
|
|||
sudo -u "${_USER}" gpg ${_GPG} "${_PACMAN_CHROOT}" || exit 1
|
||||
chown "${_USER}:${_GROUP}" "${_PACMAN_CHROOT}"{,.sig} || exit 1
|
||||
echo "Uploading files to ${_SERVER}:${_SERVER_PACMAN}..."
|
||||
sudo -u "${_USER}" scp -q "${_PACMAN_CHROOT}"{,.sig} "${_SERVER}:${_SERVER_PACMAN}" || exit 1
|
||||
sudo -u "${_USER}" rsync -a --delete --delete-after "${_PACMAN_CHROOT}"{,.sig} "${_SERVER}:${_SERVER_PACMAN}/" || exit 1
|
||||
}
|
||||
|
||||
_server_upload() {
|
||||
# copy files to server
|
||||
echo "Uploading files to ${_SERVER}:${_ARCH}..."
|
||||
echo "Uploading files to ${_SERVER}:${1}/${_ARCH}..."
|
||||
#shellcheck disable=SC2086
|
||||
sudo -u "${_USER}" ssh "${_SERVER}" "[[ -d "./${_ARCH}" ]] || mkdir -p ./${_ARCH}"
|
||||
sudo -u "${_USER}" scp -q -r "${_DIR}" "${_SERVER}":"${_ARCH}" || exit 1
|
||||
sudo -u "${_USER}" ssh "${_SERVER}" [[ -d "./${1}/${_ARCH}" ]] || mkdir -p "./${1}/${_ARCH}"
|
||||
sudo -u "${_USER}" rsync --delete --delete-after -a "${_DIR}" "${_SERVER}":"${1}/${_ARCH}/" || exit 1
|
||||
# move files on server, create symlink and removing ${_PURGE_DATE} old release
|
||||
sudo -u "${_USER}" ssh "${_SERVER}" <<EOF
|
||||
echo "Removing old .${1}/${_ARCH}/${_DIR} directory..."
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<body>
|
||||
<p><span><img src="./logo.png" alt="Logo"></span></p>
|
||||
<h1>Archboot Project | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z7GXKW4MKHK7C"><img src="./donate.png" alt="Donate"></a></h1>
|
||||
<p><strong>© 2006 - 2023 | <a href=mailto:tpowa@archlinux.org>Tobias Powalowski</a></strong><br>Arch Linux Developer <strong><a href="https://archlinux.org/people/developers/#tpowa">tpowa</a><br>Last update: 08.09.2023 10:43</strong></p>
|
||||
<p><strong>© 2006 - 2023 | <a href=mailto:tpowa@archlinux.org>Tobias Powalowski</a></strong><br>Arch Linux Developer <strong><a href="https://archlinux.org/people/developers/#tpowa">tpowa</a><br>Last update: 08.09.2023 11:55</strong></p>
|
||||
<nav id="TOC" role="doc-toc">
|
||||
<ul>
|
||||
<li><a href="#introduction" id="toc-introduction"><strong><span class="toc-section-number">1.</span> Introduction</strong></a></li>
|
||||
|
@ -1059,7 +1059,9 @@ The calculated size to boot the image follows the formula:<br>
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td><code>[archboot]<br>Server = https://archboot.com/pkg</code></td>
|
||||
<td><code>[archboot]<br>Server = https://archboot.com/pkg</code><br>
|
||||
<code>Server = https://archboot.org/pkg</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue