Difference between revisions of "Igel Microsoft Teams"

From Michael's Information Zone
Jump to navigation Jump to search
(Created page with "==Purpose== Notes on deploying Teams to Igel OS ==Notes== <pre> mkdir -p build/teams && cd build wget https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_1.3...")
 
Line 6: Line 6:
 
wget https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_1.3.00.16851_amd64.deb
 
wget https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_1.3.00.16851_amd64.deb
 
dpkg -x teams*.deb teams/
 
dpkg -x teams*.deb teams/
 +
</pre>
 +
*Create the script as instructed on Igel's site<ref>https://kb.igel.com/igelos-11.03.500/en/creating-the-initialization-script-30199932.html</ref> with name custompart-teams
 +
<pre>
  
 +
#!/bin/sh
 +
 +
ACTION="custompart-teams_${1}"
 +
 +
# mount point path
 +
MP=$(get custom_partition.mountpoint)
 +
 +
# custom partition path
 +
CP="${MP}/teams"
 +
 +
# only needed if application has an executable
 +
BIN="/usr/bin/teams"
 +
 +
# output to systemlog with ID amd tag
 +
LOGGER="logger -it ${ACTION}"
 +
 +
echo "Starting" | $LOGGER
 +
 +
case "$1" in
 +
init)
 +
        # Linking files and folders on proper path
 +
find ${CP} | while read LINE
 +
        do
 +
                DEST=$(echo -n "${LINE}" | sed -e "s|${CP}||g")
 +
                if [ ! -z "${DEST}" -a ! -e "${DEST}" ]; then
 +
                        # Remove the last slash, if it is a dir
 +
                        [ -d $LINE ] && DEST=$(echo "${DEST}" | sed -e "s/\/$//g") | $LOGGER
 +
                        if [ ! -z "${DEST}" ]; then
 +
                                ln -sv "${LINE}" "${DEST}" | $LOGGER
 +
                        fi
 +
                fi
 +
        done
 +
;;
 +
stop)
 +
        # unlink linked files
 +
    find ${CP} | while read LINE
 +
            do
 +
                DEST=$(echo -n "${LINE}" | sed -e "s|${CP}||g")
 +
    unlink $DEST | $LOGGER
 +
    done
 +
;;
 +
esac
 +
 +
echo "Finished" | $LOGGER
 +
 +
exit 0
 
</pre>
 
</pre>

Revision as of 09:32, 15 July 2020

Purpose

Notes on deploying Teams to Igel OS

Notes

mkdir -p build/teams && cd build
wget https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_1.3.00.16851_amd64.deb
dpkg -x teams*.deb teams/
  • Create the script as instructed on Igel's site[1] with name custompart-teams

#!/bin/sh

ACTION="custompart-teams_${1}"

# mount point path
MP=$(get custom_partition.mountpoint)

# custom partition path
CP="${MP}/teams"

# only needed if application has an executable
BIN="/usr/bin/teams"

# output to systemlog with ID amd tag
LOGGER="logger -it ${ACTION}"

echo "Starting" | $LOGGER

case "$1" in
init)
        # Linking files and folders on proper path
	find ${CP} | while read LINE
        do
                DEST=$(echo -n "${LINE}" | sed -e "s|${CP}||g")
                if [ ! -z "${DEST}" -a ! -e "${DEST}" ]; then
                        # Remove the last slash, if it is a dir
                        [ -d $LINE ] && DEST=$(echo "${DEST}" | sed -e "s/\/$//g") | $LOGGER
                        if [ ! -z "${DEST}" ]; then
                                ln -sv "${LINE}" "${DEST}" | $LOGGER
                        fi
                fi
        done
;;
stop)
        # unlink linked files
	    find ${CP} | while read LINE
            do
                DEST=$(echo -n "${LINE}" | sed -e "s|${CP}||g")
		    unlink $DEST | $LOGGER
	    done
;;
esac

echo "Finished" | $LOGGER

exit 0