Skip to content

Commit

Permalink
Trying to solve more issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Sep 20, 2024
1 parent d485cef commit 60b9b37
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,7 @@ uncompress() {
# List the files inside the tar and store them into a txt for running
# chmod and chown selectively and for uninstalling it later on
${CMD_SUDO} tar -tf ${tmp} > ${install_tmp_list}

# Remove first char of the list
${CMD_SUDO} sed -i 's/^.//' ${install_tmp_list}

# Store the install list itself
echo "${install_list}" | ${CMD_SUDO} tee -a ${install_tmp_list} > /dev/null
${CMD_SUDO} chmod 666 ${install_tmp_list}

# Uncompress the tarball
${CMD_SUDO} tar xzf ${tmp} -C /
Expand All @@ -351,6 +346,12 @@ uncompress() {
# Move the install list to the share directory
mv "${install_tmp_list}" "${install_list}"

# Remove first char of the list
${CMD_SUDO} sed -i 's/^.//' ${install_list}

# Store the install list itself
echo "${install_list}" | ${CMD_SUDO} tee -a ${install_list} > /dev/null

# Give execution permissions and ownership
${CMD_SUDO} xargs -d '\n' -a ${install_list} -P 4 -I {} chmod 755 "{}" # TODO: Improve this and chmod only the real executable files
${CMD_SUDO} xargs -d '\n' -a ${install_list} -P 4 -I {} chown $(id -u):$(id -g) "{}"
Expand Down

0 comments on commit 60b9b37

Please sign in to comment.