Kaynağa Gözat

Ownership of toc profile

Bob Mottram 8 yıl önce
ebeveyn
işleme
9d5e13a3c1
2 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 4
    1
      src/freedombone-app-tox
  2. 1
    0
      src/freedombone-image-mesh

+ 4
- 1
src/freedombone-app-tox Dosyayı Görüntüle

@@ -593,7 +593,10 @@ function mesh_tox_client {
593 593
 	echo $"Toxic client compile $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
594 594
 
595 595
 	# create a tox user
596
-	toxid -u $MY_USERNAME -n data
596
+	if [ ! -f /home/${MY_USERNAME}/.config/tox/data.tox ]; then
597
+		toxid -u $MY_USERNAME -n data
598
+		chown -R ${MY_USERNAME}:${MY_USERNAME} /home/${MY_USERNAME}/.config
599
+	fi
597 600
 }
598 601
 
599 602
 function enable_tox_repo {

+ 1
- 0
src/freedombone-image-mesh Dosyayı Görüntüle

@@ -447,6 +447,7 @@ function configure_toxcore {
447 447
 function create_tox_user {
448 448
 	if [ ! -f /home/${MY_USERNAME}/.config/tox/data.tox ]; then
449 449
 		toxid -u $MY_USERNAME -n data
450
+		chown -R ${MY_USERNAME}:${MY_USERNAME} /home/${MY_USERNAME}/.config
450 451
 	fi
451 452
 }
452 453