Upgraded YAMS version to v2.0 #60

Merged
rogs merged 32 commits from v2 into master 2023-10-21 22:02:31 -03:00
2 changed files with 24 additions and 24 deletions
Showing only changes of commit 3ecbb4477b - Show all commits

View File

@ -392,9 +392,9 @@ directory.
echo -e "\nWe need your sudo password to install the YAMS CLI and configure permissions..." echo -e "\nWe need your sudo password to install the YAMS CLI and configure permissions..."
if sudo cp yams /usr/local/bin/yams && sudo chmod +x /usr/local/bin/yams; then if sudo cp yams /usr/local/bin/yams && sudo chmod +x /usr/local/bin/yams; then
echo "YAMS CLI installed successfully." send_success_message "YAMS CLI installed successfully ✅"
else else
send_error_message "Failed to install YAMS CLI. Make sure you have the necessary permissions." send_error_message "Failed to install YAMS CLI. Make sure you have the necessary permissions"
fi fi
#+end_src #+end_src
@ -408,19 +408,19 @@ it will raise an error.
#+begin_src bash #+begin_src bash
if [[ -d "$media_folder" ]]; then if [[ -d "$media_folder" ]]; then
echo "Media folder \"$media_folder\" exists." send_success_message "Media folder \"$media_folder\" exists ✅"
else else
if sudo mkdir -p "$media_folder"; then if sudo mkdir -p "$media_folder"; then
echo "Media folder \"$media_folder\" created." send_success_message "Media folder \"$media_folder\" created ✅"
else else
send_error_message "Failed to create or access the media folder. Check permissions." send_error_message "Failed to create or access the media folder. Check permissions"
fi fi
fi fi
if sudo chown -R "$puid":"$pgid" "$media_folder"; then if sudo chown -R "$puid":"$pgid" "$media_folder"; then
echo "Media folder ownership and permissions set successfully." send_success_message "Media folder ownership and permissions set successfully ✅"
else else
send_error_message "Failed to set ownership and permissions for the media folder. Check permissions." send_error_message "Failed to set ownership and permissions for the media folder. Check permissions"
fi fi
#+end_src #+end_src
@ -434,19 +434,19 @@ it can't be created, we'll raise an error.
#+begin_src bash #+begin_src bash
if [[ -d "$install_location/config" ]]; then if [[ -d "$install_location/config" ]]; then
echo "Configuration folder \"$install_location/config\" exists." send_success_message "Configuration folder \"$install_location/config\" exists ✅"
else else
if sudo mkdir -p "$install_location/config"; then if sudo mkdir -p "$install_location/config"; then
echo "Configuration folder \"$install_location/config\" created." send_success_message "Configuration folder \"$install_location/config\" created ✅"
else else
send_error_message "Failed to create or access the configuration folder. Check permissions." send_error_message "Failed to create or access the configuration folder. Check permissions"
fi fi
fi fi
if sudo chown -R "$puid":"$pgid" "$install_location/config"; then if sudo chown -R "$puid":"$pgid" "$install_location/config"; then
echo "Configuration folder ownership and permissions set successfully." send_success_message "Configuration folder ownership and permissions set successfully ✅"
else else
send_error_message "Failed to set ownership and permissions for the configuration folder. Check permissions." send_error_message "Failed to set ownership and permissions for the configuration folder. Check permissions"
fi fi
#+end_src #+end_src

View File

@ -219,41 +219,41 @@ docker-compose -f "$filename" up -d
echo -e "\nWe need your sudo password to install the YAMS CLI and configure permissions..." echo -e "\nWe need your sudo password to install the YAMS CLI and configure permissions..."
if sudo cp yams /usr/local/bin/yams && sudo chmod +x /usr/local/bin/yams; then if sudo cp yams /usr/local/bin/yams && sudo chmod +x /usr/local/bin/yams; then
echo "YAMS CLI installed successfully." send_success_message "YAMS CLI installed successfully ✅"
else else
send_error_message "Failed to install YAMS CLI. Make sure you have the necessary permissions." send_error_message "Failed to install YAMS CLI. Make sure you have the necessary permissions"
fi fi
if [[ -d "$media_folder" ]]; then if [[ -d "$media_folder" ]]; then
echo "Media folder \"$media_folder\" exists." send_success_message "Media folder \"$media_folder\" exists ✅"
else else
if sudo mkdir -p "$media_folder"; then if sudo mkdir -p "$media_folder"; then
echo "Media folder \"$media_folder\" created." send_success_message "Media folder \"$media_folder\" created ✅"
else else
send_error_message "Failed to create or access the media folder. Check permissions." send_error_message "Failed to create or access the media folder. Check permissions"
fi fi
fi fi
if sudo chown -R "$puid":"$pgid" "$media_folder"; then if sudo chown -R "$puid":"$pgid" "$media_folder"; then
echo "Media folder ownership and permissions set successfully." send_success_message "Media folder ownership and permissions set successfully ✅"
else else
send_error_message "Failed to set ownership and permissions for the media folder. Check permissions." send_error_message "Failed to set ownership and permissions for the media folder. Check permissions"
fi fi
if [[ -d "$install_location/config" ]]; then if [[ -d "$install_location/config" ]]; then
echo "Configuration folder \"$install_location/config\" exists." send_success_message "Configuration folder \"$install_location/config\" exists ✅"
else else
if sudo mkdir -p "$install_location/config"; then if sudo mkdir -p "$install_location/config"; then
echo "Configuration folder \"$install_location/config\" created." send_success_message "Configuration folder \"$install_location/config\" created ✅"
else else
send_error_message "Failed to create or access the configuration folder. Check permissions." send_error_message "Failed to create or access the configuration folder. Check permissions"
fi fi
fi fi
if sudo chown -R "$puid":"$pgid" "$install_location/config"; then if sudo chown -R "$puid":"$pgid" "$install_location/config"; then
echo "Configuration folder ownership and permissions set successfully." send_success_message "Configuration folder ownership and permissions set successfully ✅"
else else
send_error_message "Failed to set ownership and permissions for the configuration folder. Check permissions." send_error_message "Failed to set ownership and permissions for the configuration folder. Check permissions"
fi fi
printf "\033c" printf "\033c"