Skip to content

Commit

Permalink
FIX Deletion
Browse files Browse the repository at this point in the history
FIX cron.weekly perm
  • Loading branch information
Alejandro Torras committed Apr 18, 2019
1 parent 25cc81c commit 0cb8968
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Vagrant/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ EOF
log 'Auto-neteja...'
chmod +x /etc/cron.weekly/canigo.cleanup
cat>/etc/cron.weekly/canigo.cleanup<<EOF
#!/bin/sh
#
Expand All @@ -310,6 +309,7 @@ cat>/etc/cron.weekly/canigo.cleanup<<EOF
snap list --all | grep desactivado | awk '{print \$1 "," \$3}' | for f in \`cat\` ; do __APP=\$(echo \$f | cut -f1 -d,); __REV=\$(echo \$f | cut -f2 -d,) ; echo \$__APP \$__REV ; snap remove \$__APP --revision \$__REV ; done
EOF
chmod +x /etc/cron.weekly/canigo.cleanup
# Permisos més "amigables" per defecte
printf '\numask 0002\n' >> /etc/bash.bashrc
Expand Down
10 changes: 5 additions & 5 deletions Vagrant/resources/home_canigo/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

log "Configurant usuari canigo ..."

if [ -d /home/canigo ]; then

rm -fr /home/canigo || die 1
mkdir -p /home/canigo || die 8
fi
#if [ -d /home/canigo ]; then
#
# rm -fr /home/canigo || die 1
# mkdir -p /home/canigo || die 8
#fi

cd /home || die 2

Expand Down

0 comments on commit 0cb8968

Please sign in to comment.