27-08-2025
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user