diff --git a/lib/util-publish.sh b/lib/util-publish.sh
index 9a5fe0a..f9f6bac 100644
--- a/lib/util-publish.sh
+++ b/lib/util-publish.sh
@@ -130,35 +130,10 @@ sync_web_shell(){
fi
}
-sync_latest_index(){
- msg2 "Creating index file ..."
- local indexfile="${src_dir}/index.html"
-
- local content="
-
- Manjaro ${profile} download
-
-
-
-
- Manjaro ${profile} ${dist_release}
"
- echo ${content} > "${indexfile}"
-
- content=$(cat ${src_dir}/${LINKS})
- echo ${content} >> "${indexfile}"
-
- content="
"
- echo ${content} >> "${indexfile}"
-
- msg2 "Uploading index file ..."
- scp "${indexfile}" "${webshell}/${htdocs}/index.html"
-}
-
sync_latest_pkg_list(){
msg2 "Uploading package list ..."
local pkglist="latest-pkgs.txt"
scp "${src_dir}/${PKGLIST}" "${webshell}/${htdocs}/${pkglist}"
- #echo body_link "${pkglist}" "${PKGLIST}" "Pkglist: " >> "${src_dir}/${LINKS}"
}
sync_latest_checksum_sha256(){
@@ -166,8 +141,6 @@ sync_latest_checksum_sha256(){
local filename="${LATEST_ISO}.sha256"
local checksum_file="latest.sha256"
scp "${src_dir}/${filename}" "${webshell}/${htdocs}/${checksum_file}"
- #local checksum=$(cat ${filename} | awk '{split($0,x," "); print x[1]}')
- #echo body_link "${checksum_file}" "${checksum}" "SHA256: " >> "${src_dir}/${LINKS}"
}
sync_latest_checksum_sha1(){
@@ -175,8 +148,6 @@ sync_latest_checksum_sha1(){
local filename="${LATEST_ISO}.sha1"
local checksum_file="latest.sha1"
scp "${src_dir}/${filename}" "${webshell}/${htdocs}/${checksum_file}"
- #local checksum=$(cat ${filename} | awk '{split($0,x," "); print x[1]}')
- #echo body_link "${checksum_file}" "${checksum}" "SHA1: " >> "${src_dir}/${LINKS}"
}
sync_latest_signature(){
@@ -184,7 +155,6 @@ sync_latest_signature(){
local filename="${LATEST_ISO}.sig"
local signature="latest.sig"
scp "${src_dir}/${filename}" "${webshell}/${htdocs}/${signature}"
- #echo body_link "${signature}" "${filename}" "GPG: " >> "${src_dir}/${LINKS}"
}
sync_latest_torrent(){
@@ -192,7 +162,6 @@ sync_latest_torrent(){
local filename="${LATEST_ISO}.torrent"
local torrent="latest.torrent"
scp "${src_dir}/${filename}" "${webshell}/${htdocs}/${torrent}"
- #echo body_link "${torrent}" "${filename}" "Torrent: " >> "${src_dir}/${LINKS}"
}
sync_latest_php(){
@@ -205,16 +174,4 @@ sync_latest_html(){
msg2 "Uploading url redirector ..."
local html="latest"
scp "${src_dir}/.latest" "${webshell}/${htdocs}/${html}"
- #echo body_link "$html" "${profile} ${dist_release}" "Latest ISO: " >> "${src_dir}/${LINKS}"
-}
-
-# $1 link
-# $2 text
-# $3 description
-body_link(){
- local osdn_io="https://manjaro.osdn.io"
- if [[ ${edition} == "community" ]]; then
- osdn_io="https://manjaro-community.osdn.io"
- fi
- echo "$3 $2"
}