From baea1fcd722b12ec32be4f48cdba30b39fc8a7a0 Mon Sep 17 00:00:00 2001 From: udeved Date: Thu, 12 Nov 2015 19:03:51 +0100 Subject: [PATCH] [deployiso] fix shell_url --- bin/deployiso.in | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/bin/deployiso.in b/bin/deployiso.in index 5d57c59..cd22172 100644 --- a/bin/deployiso.in +++ b/bin/deployiso.in @@ -17,6 +17,7 @@ SYSCONFDIR='@sysconfdir@' [[ -r ${LIBDIR}/util-msg.sh ]] && source ${LIBDIR}/util-msg.sh import ${LIBDIR}/util.sh +import ${LIBDIR}/util-publish.sh display_settings(){ show_version @@ -40,26 +41,6 @@ display_settings(){ ${is_sf} && msg2 "shell_url: ${shell_url}" } -remote_login(){ - ssh -t ${shell_url} create - # need a input param here for profile - mkdir -pv ${dist_release}/$isotype - exit -} - -upload(){ - msg "Start upload ..." - if ${is_sf};then - #sshpass -f ${remote_pwd} remote_login - local files=$(ls ${cache_dir_iso}) - sshpass -f ${remote_pwd} rsync -vP --progress -e ssh $files ${sf_url} - else - msg3 "Do something here if not sf" - fi - msg "Done upload" - msg3 "Time ${FUNCNAME}: $(elapsed_time ${timer_start}) minutes" -} - load_user_info load_config "${USER_CONFIG}/manjaro-tools.conf" @@ -102,7 +83,7 @@ cache_dir_iso="${cache_dir}/iso" if ${is_sf};then sf_url=${remote_user},${remote_project}@frs.${remote_url}:${remote_target}/${remote_project} - shell_url=${remote_user},${remote_project}@shell.${remote_url}:${remote_target}/${remote_project} + shell_url=${remote_user},${remote_project}@shell.${remote_url} else msg3 "Do something here if not sf" fi