27-08-2025

This commit is contained in:
2025-08-27 09:14:20 +02:00
parent 947698f00b
commit 839d05bfbb
5 changed files with 122 additions and 66 deletions

View File

@@ -16,7 +16,7 @@ shopt -s globstar
# Source image folder
#ln -s ~/Sites/sls/photos/img ~/Pictures/Export/photos-du-mois
[[ "$input_path" == "" ]] && SRC="$HOME/Sites/sls/photos/img" || SRC="$input_path"
[[ "$input_path" == "" ]] && SRC="$HOME/Sites/_sls/photos/img" || SRC="$input_path"
# Server
@@ -61,6 +61,7 @@ last_remote_files() {
lrf=$(rsync -zarvh -e "ssh -p ${port[$i]}" "${user[$i]}"@"${server[$i]}":"${dest[$i]}*" | grep -E "$last_year.jpg|$current_year.jpg")
fi
echo "$lrf"
# rsync -zarvh -e "ssh -p 22" "sentier@sur-le-sentier.fr:httpdocs/photos/img/*"
l=$(echo "$lrf" | awk '{print $NF}' | awk -F"." '{print $1}') # 1_2022
@@ -196,8 +197,8 @@ do
#elif [ "$i" -eq 1 ]; then
else
echo -e "\n${bold}5. Open ${italic}https://${server[$i]}/insert_bdd.php${reset}${bold}...${reset}\n"
open https://"${server[$i]}"/insert_bdd.php
echo -e "\n${bold}5. Open ${italic}https://${server[$i]}/admin/insert_bdd.php${reset}${bold}...${reset}\n"
open https://"${server[$i]}"/admin/insert_bdd.php
fi
else