Compare commits

..

No commits in common. "22a031dd715a1ed193f30eec67f68662e18540c8" and "0ac87c322259e86eca93213e98e26a74c8afe414" have entirely different histories.

2 changed files with 57 additions and 54 deletions

View File

@ -1,44 +1,51 @@
{ {
"name": "Jeedom", "name": "Jeedom",
"slug": "jeedom", "slug": "jeedom",
"categories": [ "categories": [
16 16
], ],
"date_created": "2025-03-06", "date_created": "2025-03-06",
"type": "ct", "type": "ct",
"updateable": false, "updateable": false,
"privileged": false, "privileged": false,
"interface_port": 80, "interface_port": 80,
"documentation": "https://doc.jeedom.com", "documentation": "https://doc.jeedom.com",
"config_path": "", "config_path": "",
"website": "https://jeedom.com/", "website": "https://jeedom.com/",
"logo": "https://jeedom.com/_next/image?url=%2Fassets%2Fimg%2Flogo.png&w=256&q=75", "logo": "https://jeedom.com/_next/image?url=%2Fassets%2Fimg%2Flogo.png&w=256&q=75",
"description": "Jeedom is a home automation system that is free, open, and cloudless. It allows users to manage and automate various aspects of their homes by creating objects, installing plugins for added functionalities, and connecting to a Market account for services. It also supports direct access URLs and user management.", "description": "From individual homes to IoT infrastructures\n\nJeedom: the tailor-made open source solution",
"install_methods": [ "install_methods": [
{ {
"type": "default", "type": "default",
"script": "ct/jeedom.sh", "script": "ct/jeedom.sh",
"resources": { "resources": {
"cpu": 2, "cpu": 2,
"ram": 2048, "ram": 2048,
"hdd": 16, "hdd": 16,
"os": "Debian", "os": "Debian",
"version": "12" "version": "11"
} }
} },
], {
"default_credentials": { "type": "default",
"username": "admin", "script": "ct/jeedom.sh",
"password": "admin" "resources": {
}, "cpu": 2,
"notes": [ "ram": 2048,
{ "hdd": 16,
"text": "WARNING: Installation sources scripts outside of Community Scripts repo. Please check the source before installing.", "os": "Debian",
"type": "warning" "version": "12"
}
}
],
"default_credentials": {
"username": "admin",
"password": "admin"
}, },
{ "notes": [
"text": "Only OS packages are updateable. To update Jeedom, please use the web interface.", {
"type": "info" "text": "Only OS packages are updateable. To update Jeedom, please use the web interface.",
} "type": "info"
] }
]
} }

View File

@ -15,27 +15,24 @@ update_os
msg_info "Installing dependencies" msg_info "Installing dependencies"
$STD apt-get install -y \ $STD apt-get install -y \
lsb-release \ lsb-release \
git git
msg_ok "Dependencies installed" msg_ok "Dependencies installed"
DEFAULT_BRANCH="master" DEFAULT_BRANCH="master"
REPO_URL="https://github.com/jeedom/core.git"
echo echo
while true; do while true; do
read -rp "${TAB3}Enter branch to use (master, beta, alpha...) (Default: ${DEFAULT_BRANCH}): " BRANCH read -r -p "Enter branch to use (master, beta, alpha...) (Default: ${DEFAULT_BRANCH}): " BRANCH
BRANCH="${BRANCH:-$DEFAULT_BRANCH}" BRANCH=${BRANCH:-$DEFAULT_BRANCH}
if git ls-remote --heads "$REPO_URL" "refs/heads/$BRANCH" | grep -q .; then if git ls-remote --heads https://github.com/jeedom/core.git "$BRANCH" | grep -q "$BRANCH"; then
break break
else else
msg_error "Branch '$BRANCH' does not exist on remote. Please try again." echo "Branch '$BRANCH' does not exist. Please enter a valid branch."
fi fi
done done
msg_info "Downloading Jeedom installation script" msg_info "Downloading Jeedom installation script"
cd /tmp
wget -q https://raw.githubusercontent.com/jeedom/core/"${BRANCH}"/install/install.sh wget -q https://raw.githubusercontent.com/jeedom/core/"${BRANCH}"/install/install.sh
chmod +x install.sh chmod +x install.sh
msg_ok "Installation script downloaded" msg_ok "Installation script downloaded"
@ -88,7 +85,6 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf /tmp/install.sh
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"